Lines Matching full:threads
25 * Shared state between multiple threads which are enforcing Landlock rulesets
43 * Re-initialized on every round of looking for newly spawned threads.
48 /* Sibling threads wait for completion. */
67 * other threads in the same process
69 * When this is run, the same function gets run in all other threads in the same
75 * Afterwards, depending on the presence of an error, all threads either commit
88 * In the common case, where all threads initially point to the same in restrict_one_thread()
118 * Barrier: Wait until all threads are done preparing. in restrict_one_thread()
130 /* Abort the commit if any of the other threads had an error. */ in restrict_one_thread()
148 /* Notify the calling thread once all threads are done */ in restrict_one_thread()
183 * capacity. This can legitimately happen if new threads get started after we
294 * count_additional_threads - counts the sibling threads that are not in works
310 /* Skip exited threads. */ in count_additional_threads()
314 /* Skip threads that we have already seen. */ in count_additional_threads()
324 * schedule_task_work - adds task_work for all eligible sibling threads
350 /* Skip exited threads. */ in schedule_task_work()
354 /* Skip threads that we already looked at. */ in schedule_task_work()
360 * which might spawn new threads before our task work runs, so we need in schedule_task_work()
430 * restrict_sibling_threads - enables a Landlock policy for all sibling threads
452 * sibling threads. In the task work, each thread: in landlock_restrict_sibling_threads()
461 * calling task after ensuring that all sibling threads have done in landlock_restrict_sibling_threads()
476 * - As in our case, all threads are themselves exchanging their own struct in landlock_restrict_sibling_threads()
479 * - We do not acquire a lock to keep the list of sibling threads stable in landlock_restrict_sibling_threads()
481 * threads changes between these for_each_thread loops, we make up for in landlock_restrict_sibling_threads()
482 * that by continuing to look for threads until they are all discovered in landlock_restrict_sibling_threads()
484 * threads. in landlock_restrict_sibling_threads()
487 /* In RCU read-lock, count the threads we need. */ in landlock_restrict_sibling_threads()
546 * We now have all sibling threads blocking and in "prepared" state in the in landlock_restrict_sibling_threads()
547 * task work. Ask all threads to commit. in landlock_restrict_sibling_threads()