Lines Matching defs:knote
178 struct knote;
179 SLIST_HEAD(klist, knote);
196 * Flags for knote call
201 #define KNOTE(list, hint, flags) knote(list, hint, flags)
202 #define KNOTE_LOCKED(list, hint) knote(list, hint, KNF_LISTLOCKED)
203 #define KNOTE_UNLOCKED(list, hint) knote(list, hint, 0)
225 int (*f_attach)(struct knote *kn);
226 void (*f_detach)(struct knote *kn);
227 int (*f_event)(struct knote *kn, long hint);
228 void (*f_touch)(struct knote *kn, struct kevent *kev, u_long type);
232 * Setting the KN_INFLUX flag enables you to unlock the kq that this knote
237 struct knote {
238 SLIST_ENTRY(knote) kn_link; /* for kq */
239 SLIST_ENTRY(knote) kn_selnext; /* for struct selinfo */
241 TAILQ_ENTRY(knote) kn_tqe;
248 #define KN_DETACHED 0x08 /* knote is detached */
249 #define KN_INFLUX 0x10 /* knote is in flux */
250 #define KN_MARKER 0x20 /* ignore this knote */
251 #define KN_KQUEUE 0x40 /* this knote belongs to a kq */
287 void knote(struct knlist *list, long hint, int lockflags);
291 void knlist_add(struct knlist *knl, struct knote *kn, int islocked);
292 void knlist_remove(struct knlist *knl, struct knote *kn, int islocked);