Searched refs:coalition (Results 1 - 12 of 12) sorted by relevance

/xnu-2782.1.97/libsyscall/wrappers/
H A Dcoalition.c28 #include <sys/coalition.h>
/xnu-2782.1.97/osfmk/kern/
H A Dcoalition.c33 #include <kern/coalition.h>
75 struct coalition { struct
84 * Count the length of time this coalition had at least one active task.
90 uint64_t task_count; /* Count of tasks that have started in this coalition */
91 uint64_t dead_task_count; /* Count of tasks that have exited in this coalition; subtract from task_count to get count of "active" */
92 queue_head_t tasks; /* List of active tasks in the coalition */
99 uint32_t active_count; /* Number of members of (tasks in) the coalition, plus vouchers referring to the coalition */
101 unsigned int privileged : 1; /* Members of this coalition may create and manage coalitions and may posix_spawn processes into selected coalitions */
107 /* state of the coalition */
[all...]
H A DMakefile22 coalition.h \
H A Dtask.c109 #include <kern/coalition.h>
465 * sets up the ledgers for the default coalition. If we don't have coalitions,
942 new_task->coalition = COALITION_NULL;
947 } else if (parent_task && parent_task->coalition) {
948 coalition_adopt_task(parent_task->coalition, new_task);
953 if (new_task->coalition == COALITION_NULL) {
954 panic("created task is not a member of any coalition");
1126 if (!task->coalition) {
1127 panic("deallocating task was not a member of any coalition");
1129 coalition_release(task->coalition);
[all...]
H A Dstartup.c83 #include <kern/coalition.h>
H A Dtask.h354 coalition_t coalition; /* coalition this task belongs to */ member in struct:task
355 /* These fields are protected by coalition->lock, not the task lock. */
356 queue_chain_t coalition_tasks; /* list of tasks in the coalition */
/xnu-2782.1.97/bsd/kern/
H A Dsys_coalition.c5 #include <kern/coalition.h>
7 #include <sys/coalition.h>
16 * Create a new, empty coalition and return its ID.
20 * ENOMEM Unable to allocate kernel resources for a new coalition
58 * Request to terminate the coalition identified by ID.
59 * Attempts to spawn into this coalition using the posix_spawnattr will begin
60 * failing. Processes already within the coalition may still fork.
61 * Arms the 'coalition is empty' notification when the coalition's active
65 * ESRCH No coalition wit
181 int coalition(proc_t p, struct coalition_args *cap, __unused int32_t *retval) function
[all...]
H A Dkern_fork.c115 #include <kern/coalition.h>
326 * coalition if spawn, coalition the child process
330 * always inherits the parent's coalition.
362 fork1(proc_t parent_proc, thread_t *child_threadp, int kind, coalition_t coalition) argument
555 spawn ? coalition : COALITION_NULL,
775 * thread creation, a uthread) in the parent coalition, which is
H A Dkern_proc.c102 #include <kern/coalition.h>
103 #include <sys/coalition.h>
H A Dkern_exec.c134 #include <kern/coalition.h>
2080 * Set the new task's coalition, if it is requested.
2089 printf("%s: searching for coalition ID %llu\n", __func__, cid);
2094 printf("%s: could not find coalition ID %llu (perhaps it has been terminated or reaped)\n", __func__, cid);
/xnu-2782.1.97/osfmk/mach/
H A Dmach_types.h122 typedef struct coalition *coalition_t;
/xnu-2782.1.97/bsd/sys/
H A DMakefile42 coalition.h \

Completed in 110 milliseconds