Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/event.h
| Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | |||||||||
| */ | */ | ||||||||
| #define NOTE_EXIT 0x80000000 /* proc/procdesc: process | #define NOTE_EXIT 0x80000000 /* proc/procdesc: process | ||||||||
| exited */ | exited */ | ||||||||
| #define NOTE_FORK 0x40000000 /* proc/procdesc: process | #define NOTE_FORK 0x40000000 /* proc/procdesc: process | ||||||||
| forked */ | forked */ | ||||||||
| #define NOTE_EXEC 0x20000000 /* proc: process exec'd */ | #define NOTE_EXEC 0x20000000 /* proc: process exec'd */ | ||||||||
| #define NOTE_PDSIGCHLD 0x10000000 /* procdesc: pdwait() info | #define NOTE_PDSIGCHLD 0x10000000 /* procdesc: pdwait() info | ||||||||
| available */ | available */ | ||||||||
| #define NOTE_PCTRLMASK 0xf0000000 /* mask for hint bits */ | #define NOTE_SIGNAL 0x08000000 /* process received a signal, | ||||||||
| shared with EVFIL_SIGNAL */ | |||||||||
| #define NOTE_REAP 0x04000000 /* process reaped */ | |||||||||
| #define NOTE_PCTRLMASK 0xfc000000 /* mask for hint bits */ | |||||||||
markjUnsubmitted Not Done Inline Actions
markj: | |||||||||
| #define NOTE_PDATAMASK 0x000fffff /* mask for pid */ | #define NOTE_PDATAMASK 0x000fffff /* mask for pid */ | ||||||||
| /* additional flags for EVFILT_PROC */ | /* additional flags for EVFILT_PROC */ | ||||||||
| #define NOTE_TRACK 0x00000001 /* follow across fork/create */ | #define NOTE_TRACK 0x00000001 /* follow across fork/create */ | ||||||||
| #define NOTE_TRACKERR 0x00000002 /* could not track child */ | #define NOTE_TRACKERR 0x00000002 /* could not track child */ | ||||||||
| #define NOTE_CHILD 0x00000004 /* am a child process */ | #define NOTE_CHILD 0x00000004 /* am a child process */ | ||||||||
| /* data/hint flags for EVFILT_JAIL and EVFILT_JAILDESC */ | /* data/hint flags for EVFILT_JAIL and EVFILT_JAILDESC */ | ||||||||
| Show All 36 Lines | |||||||||
| #define KNF_LISTLOCKED 0x0001 /* knlist is locked */ | #define KNF_LISTLOCKED 0x0001 /* knlist is locked */ | ||||||||
| #define KNF_NOKQLOCK 0x0002 /* do not keep KQ_LOCK */ | #define KNF_NOKQLOCK 0x0002 /* do not keep KQ_LOCK */ | ||||||||
| #define KNOTE(list, hint, flags) knote(list, hint, flags) | #define KNOTE(list, hint, flags) knote(list, hint, flags) | ||||||||
| #define KNOTE_LOCKED(list, hint) knote(list, hint, KNF_LISTLOCKED) | #define KNOTE_LOCKED(list, hint) knote(list, hint, KNF_LISTLOCKED) | ||||||||
| #define KNOTE_UNLOCKED(list, hint) knote(list, hint, 0) | #define KNOTE_UNLOCKED(list, hint) knote(list, hint, 0) | ||||||||
| #define KNLIST_EMPTY(list) SLIST_EMPTY(&(list)->kl_list) | #define KNLIST_EMPTY(list) SLIST_EMPTY(&(list)->kl_list) | ||||||||
| /* | |||||||||
| * Flag indicating hint is a signal. Used by EVFILT_SIGNAL, and also | |||||||||
| * shared by EVFILT_PROC (all knotes attached to p->p_klist) | |||||||||
| */ | |||||||||
| #define NOTE_SIGNAL 0x08000000 | |||||||||
| /* | /* | ||||||||
| * Hint values for the optional f_touch event filter. If f_touch is not set | * Hint values for the optional f_touch event filter. If f_touch is not set | ||||||||
| * to NULL and f_isfd is zero the f_touch filter will be called with the type | * to NULL and f_isfd is zero the f_touch filter will be called with the type | ||||||||
| * argument set to EVENT_REGISTER during a kevent() system call. It is also | * argument set to EVENT_REGISTER during a kevent() system call. It is also | ||||||||
| * called under the same conditions with the type argument set to EVENT_PROCESS | * called under the same conditions with the type argument set to EVENT_PROCESS | ||||||||
| * when the event has been triggered. | * when the event has been triggered. | ||||||||
| */ | */ | ||||||||
| ▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines | |||||||||