summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_poll.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/kern_poll.c b/sys/kern/kern_poll.c
index a388354a8b92..520ee521853c 100644
--- a/sys/kern/kern_poll.c
+++ b/sys/kern/kern_poll.c
@@ -174,6 +174,11 @@ SYSCTL_UINT(_kern_polling, OID_AUTO, idlepoll_sleeping, CTLFLAG_RD,
struct pollrec {
poll_handler_t *handler;
struct ifnet *ifp;
+ /*
+ * Flags of polling record (protected by poll_mtx).
+ * PRF_RUNNING means that the handler is now executing.
+ * PRF_LEAVING means that the handler is now deregistering.
+ */
#define PRF_RUNNING 0x1
#define PRF_LEAVING 0x2
uint32_t flags;