taskqueue.9 (823234556fb17f72e92d5616c111dfeadc15b92a) taskqueue.9 (b92a189eb9b32f7e9db74343d46434b554a67d04)
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 2000 Doug Rabson
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 102 unchanged lines hidden (view full) ---

111was enqueued.
112Otherwise,
113the task is added to the list before the first task which has a lower
114.Va ta_priority
115value or at the end of the list if no tasks have a lower priority.
116Enqueueing a task does not perform any memory allocation which makes
117it suitable for calling from an interrupt handler.
118This function will return
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 2000 Doug Rabson
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 102 unchanged lines hidden (view full) ---

111was enqueued.
112Otherwise,
113the task is added to the list before the first task which has a lower
114.Va ta_priority
115value or at the end of the list if no tasks have a lower priority.
116Enqueueing a task does not perform any memory allocation which makes
117it suitable for calling from an interrupt handler.
118This function will return
119.Dv EPIPE
119.Er EPIPE
120if the queue is being freed.
121.Pp
122To execute all the tasks on a queue,
123call
124.Fn taskqueue_run .
125When a task is executed,
126first it is removed from the queue,
127the value of

--- 76 unchanged lines hidden ---
120if the queue is being freed.
121.Pp
122To execute all the tasks on a queue,
123call
124.Fn taskqueue_run .
125When a task is executed,
126first it is removed from the queue,
127the value of

--- 76 unchanged lines hidden ---