/freebsd-current/sys/compat/linuxkpi/common/src/ |
H A D | linux_kthread.c | 44 linux_kthread_should_stop_task(struct task_struct *task) argument 47 return (atomic_read(&task->kthread_flags) & KTHREAD_SHOULD_STOP_MASK); 58 linux_kthread_stop(struct task_struct *task) argument 63 * Assume task is still alive else caller should not call 66 atomic_or(KTHREAD_SHOULD_STOP_MASK, &task->kthread_flags); 67 kthread_unpark(task); 68 wake_up_process(task); 69 wait_for_completion(&task->exited); 72 * Get return code and free task structure: 74 retval = task 81 linux_kthread_park(struct task_struct *task) argument 93 struct task_struct *task; local 111 struct task_struct *task; local 118 linux_kthread_unpark(struct task_struct *task) argument 130 struct task_struct *task; local 150 struct task_struct *task = current; local [all...] |
H A D | linux_schedule.c | 42 linux_add_to_sleepqueue(void *wchan, struct task_struct *task, argument 73 linux_schedule_save_interrupt_value(task, ret); 99 wake_up_task(struct task_struct *task, unsigned int state) argument 104 sleepq_lock(task); 105 if ((atomic_read(&task->state) & state) != 0) { 106 set_task_state(task, TASK_WAKING); 107 wakeup_swapper = sleepq_signal(task, SLEEPQ_SLEEP, 0, 0); 110 sleepq_release(task); 117 linux_signal_pending(struct task_struct *task) argument 122 td = task 132 linux_fatal_signal_pending(struct task_struct *task) argument 146 linux_signal_pending_state(long state, struct task_struct *task) argument 157 linux_send_sig(int signo, struct task_struct *task) argument 171 struct task_struct *task; local 257 struct task_struct *task; local 294 struct task_struct *task; local 361 struct task_struct *task; local 401 struct task_struct *task; local 425 linux_wake_up_state(struct task_struct *task, unsigned int state) argument [all...] |
/freebsd-current/contrib/ntp/libntp/lib/isc/ |
H A D | task.c | 25 * XXXRTH Need to document the states a task can be in, and the rules 38 #include <isc/task.h> 51 * when built without threads we share a single global task manager and use 52 * an integrated event loop for socket, timer, and other generic task events. 54 * we don't use either of them: an application can have multiple task managers 70 #define XTRACE(m) fprintf(stderr, "task %p thread %lu: %s\n", \ 71 task, isc_thread_self(), (m)) 72 #define XTTRACE(t, m) fprintf(stderr, "task %p thread %lu: %s\n", \ 108 /* Locked by task lock. */ 118 /* Locked by task manage 297 task_finished(isc__task_t *task) argument 333 isc__task_t *task; local 412 task_shutdown(isc__task_t *task) argument 455 task_ready(isc__task_t *task) argument 476 task_detach(isc__task_t *task) argument 506 isc__task_t *task; local 530 task_send(isc__task_t *task, isc_event_t **eventp) argument 561 isc__task_t *task = (isc__task_t *)task0; local 604 isc__task_t *task; local 638 dequeue_events(isc__task_t *task, void *sender, isc_eventtype_t first, isc_eventtype_t last, void *tag, isc_eventlist_t *events, isc_boolean_t purging) argument 681 isc__task_t *task = (isc__task_t *)task0; local 710 isc__task_purge(isc_task_t *task, void *sender, isc_eventtype_t type, void *tag) argument 724 isc__task_t *task = (isc__task_t *)task0; local 766 isc__task_unsendrange(isc_task_t *task, void *sender, isc_eventtype_t first, isc_eventtype_t last, void *tag, isc_eventlist_t *events) argument 781 isc__task_unsend(isc_task_t *task, void *sender, isc_eventtype_t type, void *tag, isc_eventlist_t *events) argument 798 isc__task_t *task = (isc__task_t *)task0; local 836 isc__task_t *task = (isc__task_t *)task0; local 868 isc__task_t *task = (isc__task_t *)task0; local 885 isc__task_t *task = (isc__task_t *)task0; local 894 isc__task_t *task = (isc__task_t *)task0; local 903 isc__task_t *task = (isc__task_t *)task0; local 946 isc__task_t *task; local 970 push_readyq(isc__taskmgr_t *manager, isc__task_t *task) argument 979 isc__task_t *task; local 1458 isc__task_t *task; local 1643 isc__task_t *task = (isc__task_t *)task0; local 1665 isc__task_t *task = (isc__task_t *)task0; local 1681 isc__task_t *task = (isc__task_t *)task0; local 1708 isc__task_t *task = (isc__task_t *)task0; local 1726 isc__task_t *task = (isc__task_t *)t; local 1737 isc__task_t *task; local [all...] |
H A D | ondestroy.c | 29 #include <isc/task.h> 42 isc_ondestroy_register(isc_ondestroy_t *ondest, isc_task_t *task, argument 49 REQUIRE(task != NULL); 56 isc_task_attach(task, &thetask); 68 isc_task_t *task; local 76 task = eventp->ev_sender; 79 isc_task_sendanddetach(&task, &eventp);
|
/freebsd-current/sys/contrib/dev/mediatek/mt76/ |
H A D | util.h | 38 struct task_struct *task; member in struct:mt76_worker 80 w->task = kthread_run(__mt76_worker_fn, w, 83 if (!IS_ERR(w->task)) 86 rc = PTR_ERR(w->task); 87 w->task = NULL; 95 if (w->task == NULL) 100 wake_up_process(w->task); 107 if (w->task == NULL) 110 kthread_unpark(w->task); 118 if (w->task [all...] |
/freebsd-current/contrib/ntp/libntp/lib/isc/include/isc/ |
H A D | task.h | 27 /*! \file isc/task.h 28 * \brief The task system provides a lightweight execution context, which is 31 * When a task's event queue is non-empty, the 32 * task is runnable. A small work crew of threads, typically one per CPU, 56 * Events which have been queued for a task but not delivered may be removed 57 * from the task's event queue by purging or unsending. 109 /*% Task and task manager methods */ 124 void (*send)(isc_task_t *task, isc_event_t **eventp); 126 unsigned int (*unsend)(isc_task_t *task, void *sender, isc_eventtype_t type, 128 isc_result_t (*onshutdown)(isc_task_t *task, isc_taskaction_ [all...] |
H A D | ondestroy.h | 56 * X_ondestroy(X *instance, isc_task_t *task, 58 * return(isc_ondestroy_register(&instance->ondest, task,eventp)); 94 isc_ondestroy_register(isc_ondestroy_t *ondest, isc_task_t *task, 98 * Stores task and *eventp away inside *ondest. Ownership of **event is 99 * taken from the caller (and *eventp is set to NULL). The task is attached 106 * Dispatches the event(s) to the task(s) that were given in
|
H A D | socket.h | 29 * sources in the task system. 32 * event queue of the task which requested the I/O. 37 * Clients of this module must not be holding a socket's task's lock when 272 void *cbarg, isc_task_t *task, 283 isc_task_t *task, isc_taskaction_t action, 287 isc_task_t *task, isc_taskaction_t action, 290 unsigned int minimum, isc_task_t *task, 292 void (*cancel)(isc_socket_t *sock, isc_task_t *task, 358 isc_task_t *task, 462 isc_socket_cancel(isc_socket_t *sock, isc_task_t *task, [all...] |
/freebsd-current/sys/compat/linuxkpi/common/include/linux/ |
H A D | sched.h | 100 #define task_pid_group_leader(task) (task)->task_thread->td_proc->p_pid 101 #define task_pid(task) ((task)->pid) 102 #define task_pid_nr(task) ((task)->pid) 103 #define task_pid_vnr(task) ((task)->pid) 107 #define task_euid(task) ((task) 116 get_task_struct(struct task_struct *task) argument 122 put_task_struct(struct task_struct *task) argument 165 linux_schedule_save_interrupt_value(struct task_struct *task, int value) argument 176 linux_schedule_get_interrupt_value(struct task_struct *task) argument 215 get_task_comm(char *buf, struct task_struct *task) argument [all...] |
H A D | kthread.h | 48 struct task_struct *task; member in struct:kthread_worker 54 struct task task; member in struct:kthread_work 82 #define kthread_stop(task) linux_kthread_stop(task) 84 #define kthread_should_stop_task(task) linux_kthread_should_stop_task(task) 85 #define kthread_park(task) linux_kthread_park(task) 88 #define kthread_unpark(task) linux_kthread_unpar [all...] |
H A D | pid.h | 59 #define get_task_pid(task, type) ({ \ 61 (task)->task_thread->td_tid; \
|
H A D | mm_types.h | 80 #define get_task_mm(task) linux_get_task_mm(task)
|
/freebsd-current/sys/dev/wtap/wtap_hal/ |
H A D | handler.h | 46 struct task proc;
|
/freebsd-current/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_taskq.c | 114 taskq_ent_t *task = arg; local 116 task->tqent_func(task->tqent_arg); 118 uma_zfree(taskq_zone, task); 124 taskq_ent_t *task; local 132 * If TQ_FRONT is given, we want higher priority for this task, so it 137 task = uma_zalloc(taskq_zone, mflag); 138 if (task == NULL) 141 task->tqent_func = func; 142 task 153 taskq_ent_t *task = arg; local 159 taskq_dispatch_ent(taskq_t *tq, task_func_t func, void *arg, u_int flags, taskq_ent_t *task) argument [all...] |
/freebsd-current/sys/dev/isci/scil/ |
H A D | scic_task_request.h | 62 * task management requests. 76 * based task management request object. 78 * @return Return the size of the SCIC task request object. 86 * task management requests, regardless of protocol. Memory 87 * initialization and functionality common to all task request types 91 * the user task request object and the core task request object. 94 * for which to build the task managmement request. 96 * object for which to build the task management request. 99 * memory when the task i [all...] |
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | spl_taskq.c | 54 * Global system-wide dynamic task queue available for all consumers. This 350 taskq_free(taskq_ent_t *task) argument 352 taskq_remove(task); 353 if (refcount_release(&task->tqent_rc)) 354 uma_zfree(taskq_zone, task); 381 * Tasks normally free themselves when run, but here the task 394 taskq_ent_t *task = arg; local 398 task->tqent_func(task->tqent_arg); 399 taskq_free(task); 406 taskq_ent_t *task; local 439 taskq_ent_t *task; local 469 taskq_ent_t *task = arg; local 477 taskq_dispatch_ent(taskq_t *tq, task_func_t func, void *arg, uint32_t flags, taskq_ent_t *task) argument 491 taskq_init_ent(taskq_ent_t *task) argument 502 taskq_empty_ent(taskq_ent_t *task) argument [all...] |
/freebsd-current/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_taskdeps.h | 94 static inline void __kmp_release_deps(kmp_int32 gtid, kmp_taskdata_t *task) { argument 97 if (task->is_taskgraph && !(__kmp_tdg_is_recording(task->tdg->tdg_status))) { 98 kmp_node_info_t *TaskInfo = &(task->tdg->record_map[task->td_task_id]); 102 kmp_node_info_t *successor = &(task->tdg->record_map[successorNumber]); 104 if (successor->task != nullptr && npredecessors == 0) { 105 __kmp_omp_task(gtid, successor->task, false); 113 kmp_depnode_t *node = task->td_depnode; 125 if (task [all...] |
/freebsd-current/sys/dev/smc/ |
H A D | if_smcvar.h | 49 struct task smc_intr; 50 struct task smc_rx; 51 struct task smc_tx;
|
/freebsd-current/sys/sys/ |
H A D | _task.h | 35 * Each task includes a function which is called from 37 * field of struct task and the second argument is a count of how many 38 * times the task was enqueued before the call to taskqueue_run(). 46 struct task { struct 47 STAILQ_ENTRY(task) ta_link; /* (q) link for queue */ 51 task_fn_t *ta_func; /* (c) task handler */ 69 gtask_fn_t *ta_func; /* (c) task handler */
|
H A D | taskqueue.h | 48 struct task t; 86 int taskqueue_enqueue(struct taskqueue *queue, struct task *task); 87 int taskqueue_enqueue_flags(struct taskqueue *queue, struct task *task, 94 int taskqueue_poll_is_busy(struct taskqueue *queue, struct task *task); 95 int taskqueue_cancel(struct taskqueue *queue, struct task *task, 99 void taskqueue_drain(struct taskqueue *queue, struct task *tas [all...] |
/freebsd-current/sys/kern/ |
H A D | subr_taskqueue.c | 57 struct task *tb_running; 64 STAILQ_HEAD(, task) tq_queue; 66 struct task *tq_hint; 127 task_get_busy(struct taskqueue *queue, struct task *task) argument 133 if (tb->tb_running == task) 231 taskqueue_enqueue_locked(struct taskqueue *queue, struct task *task, int flags) argument 233 struct task *ins; 234 struct task *pre 304 taskqueue_enqueue_flags(struct taskqueue *queue, struct task *task, int flags) argument 316 taskqueue_enqueue(struct taskqueue *queue, struct task *task) argument 488 struct task *task; local 542 taskqueue_poll_is_busy(struct taskqueue *queue, struct task *task) argument 554 taskqueue_cancel_locked(struct taskqueue *queue, struct task *task, u_int *pendp) argument 578 taskqueue_cancel(struct taskqueue *queue, struct task *task, u_int *pendp) argument 611 taskqueue_drain(struct taskqueue *queue, struct task *task) argument [all...] |
/freebsd-current/sys/cam/mmc/ |
H A D | mmc_sim.h | 38 struct task sim_task;
|
/freebsd-current/sys/dev/hyperv/vmbus/ |
H A D | vmbus_chanvar.h | 58 struct task ch_task; 59 struct task ch_poll_task; 129 struct task ch_attach_task; /* run in ch_mgmt_tq */ 130 struct task ch_detach_task; /* run in ch_mgmt_tq */
|
/freebsd-current/sys/dev/vmware/vmci/ |
H A D | vmci.h | 61 struct task vmci_interrupt_dq_task; 62 struct task vmci_interrupt_bm_task; 64 struct task vmci_delayed_work_task;
|
/freebsd-current/sys/dev/firewire/ |
H A D | fwohcivar.h | 71 struct task fwohci_task_busreset; 72 struct task fwohci_task_sid; 73 struct task fwohci_task_dma;
|