Deleted Added
full compact
taskqueue.h (230012) taskqueue.h (262064)
1/*-
2 * Copyright (c) 2000 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2000 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: stable/9/sys/sys/taskqueue.h 230012 2012-01-12 14:43:52Z jhb $
26 * $FreeBSD: stable/9/sys/sys/taskqueue.h 262064 2014-02-17 15:29:46Z avg $
27 */
28
29#ifndef _SYS_TASKQUEUE_H_
30#define _SYS_TASKQUEUE_H_
31
32#ifndef _KERNEL
33#error "no user-servicable parts inside"
34#endif

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

66 struct timeout_task *timeout_task, int ticks);
67int taskqueue_cancel(struct taskqueue *queue, struct task *task,
68 u_int *pendp);
69int taskqueue_cancel_timeout(struct taskqueue *queue,
70 struct timeout_task *timeout_task, u_int *pendp);
71void taskqueue_drain(struct taskqueue *queue, struct task *task);
72void taskqueue_drain_timeout(struct taskqueue *queue,
73 struct timeout_task *timeout_task);
27 */
28
29#ifndef _SYS_TASKQUEUE_H_
30#define _SYS_TASKQUEUE_H_
31
32#ifndef _KERNEL
33#error "no user-servicable parts inside"
34#endif

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

66 struct timeout_task *timeout_task, int ticks);
67int taskqueue_cancel(struct taskqueue *queue, struct task *task,
68 u_int *pendp);
69int taskqueue_cancel_timeout(struct taskqueue *queue,
70 struct timeout_task *timeout_task, u_int *pendp);
71void taskqueue_drain(struct taskqueue *queue, struct task *task);
72void taskqueue_drain_timeout(struct taskqueue *queue,
73 struct timeout_task *timeout_task);
74void taskqueue_drain_all(struct taskqueue *queue);
74void taskqueue_free(struct taskqueue *queue);
75void taskqueue_run(struct taskqueue *queue);
76void taskqueue_block(struct taskqueue *queue);
77void taskqueue_unblock(struct taskqueue *queue);
78int taskqueue_member(struct taskqueue *queue, struct thread *td);
79
80#define TASK_INITIALIZER(priority, func, context) \
81 { .ta_pending = 0, \

--- 108 unchanged lines hidden ---
75void taskqueue_free(struct taskqueue *queue);
76void taskqueue_run(struct taskqueue *queue);
77void taskqueue_block(struct taskqueue *queue);
78void taskqueue_unblock(struct taskqueue *queue);
79int taskqueue_member(struct taskqueue *queue, struct thread *td);
80
81#define TASK_INITIALIZER(priority, func, context) \
82 { .ta_pending = 0, \

--- 108 unchanged lines hidden ---