Home
last modified time | relevance | path

Searched refs:set_tid (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/tools/testing/selftests/clone3/
Dclone3_set_tid.c40 static int call_clone3_set_tid(pid_t *set_tid, in call_clone3_set_tid() argument
52 .set_tid = ptr_to_u64(set_tid), in call_clone3_set_tid()
69 getpid(), set_tid[0]); in call_clone3_set_tid()
93 if (set_tid[0] != getpid()) in call_clone3_set_tid()
119 static void test_clone3_set_tid(pid_t *set_tid, in test_clone3_set_tid() argument
130 getpid(), set_tid[0], flags); in test_clone3_set_tid()
131 ret = call_clone3_set_tid(set_tid, set_tid_size, flags, expected_pid, in test_clone3_set_tid()
135 getpid(), set_tid[0], ret, expected); in test_clone3_set_tid()
157 pid_t set_tid[MAX_PID_NS_LEVEL * 2]; in main() local
176 memset(&set_tid, 0, sizeof(set_tid)); in main()
[all …]
Dclone3_cap_checkpoint_restore.c42 pid_t *set_tid, size_t set_tid_size) in call_clone3_set_tid() argument
49 .set_tid = ptr_to_u64(set_tid), in call_clone3_set_tid()
63 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid()
65 if (set_tid[0] != getpid()) in call_clone3_set_tid()
84 pid_t *set_tid, size_t set_tid_size) in test_clone3_set_tid() argument
88 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); in test_clone3_set_tid()
89 ret = call_clone3_set_tid(_metadata, set_tid, set_tid_size); in test_clone3_set_tid()
90 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); in test_clone3_set_tid()
143 pid_t set_tid[1]; in TEST() local
150 memset(&set_tid, 0, sizeof(set_tid)); in TEST()
[all …]
Dclone3_selftests.h38 __aligned_u64 set_tid; member
/linux-6.6.21/include/uapi/linux/
Dsched.h101 __aligned_u64 set_tid; member
/linux-6.6.21/tools/include/uapi/linux/
Dsched.h101 __aligned_u64 set_tid; member
/linux-6.6.21/kernel/
Dfork.c2517 pid = alloc_pid(p->nsproxy->pid_ns_for_children, args->set_tid, in copy_process()
3064 pid_t *kset_tid = kargs->set_tid; in copy_clone_args_from_user()
3086 if (unlikely(!args.set_tid && args.set_tid_size > 0)) in copy_clone_args_from_user()
3089 if (unlikely(args.set_tid && args.set_tid_size == 0)) in copy_clone_args_from_user()
3117 if (args.set_tid && in copy_clone_args_from_user()
3118 copy_from_user(kset_tid, u64_to_user_ptr(args.set_tid), in copy_clone_args_from_user()
3122 kargs->set_tid = kset_tid; in copy_clone_args_from_user()
3199 pid_t set_tid[MAX_PID_NS_LEVEL]; in SYSCALL_DEFINE2() local
3201 kargs.set_tid = set_tid; in SYSCALL_DEFINE2()
Dpid.c162 struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid, in alloc_pid() argument
194 tid = set_tid[ns->level - i]; in alloc_pid()
/linux-6.6.21/include/linux/
Dpid.h137 extern struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid,
/linux-6.6.21/include/linux/sched/
Dtask.h35 pid_t *set_tid; member