Home
last modified time | relevance | path

Searched refs:task2 (Results 1 - 25 of 33) sorted by relevance

12

/kernel/linux/linux-5.10/kernel/
H A Dkcmp.c104 struct task_struct *task2, in kcmp_epoll_target()
119 files = get_files_struct(task2); in kcmp_epoll_target()
144 struct task_struct *task2, in kcmp_epoll_target()
155 struct task_struct *task1, *task2; in SYSCALL_DEFINE5() local
164 task2 = find_task_by_vpid(pid2); in SYSCALL_DEFINE5()
165 if (!task1 || !task2) in SYSCALL_DEFINE5()
169 get_task_struct(task2); in SYSCALL_DEFINE5()
177 &task2->signal->exec_update_lock); in SYSCALL_DEFINE5()
181 !ptrace_may_access(task2, PTRACE_MODE_READ_REALCREDS)) { in SYSCALL_DEFINE5()
191 filp2 = get_file_raw_ptr(task2, idx in SYSCALL_DEFINE5()
103 kcmp_epoll_target(struct task_struct *task1, struct task_struct *task2, unsigned long idx1, struct kcmp_epoll_slot __user *uslot) kcmp_epoll_target() argument
143 kcmp_epoll_target(struct task_struct *task1, struct task_struct *task2, unsigned long idx1, struct kcmp_epoll_slot __user *uslot) kcmp_epoll_target() argument
[all...]
/kernel/linux/linux-6.6/kernel/
H A Dkcmp.c99 struct task_struct *task2, in kcmp_epoll_target()
113 filp_epoll = fget_task(task2, slot.efd); in kcmp_epoll_target()
127 struct task_struct *task2, in kcmp_epoll_target()
138 struct task_struct *task1, *task2; in SYSCALL_DEFINE5() local
147 task2 = find_task_by_vpid(pid2); in SYSCALL_DEFINE5()
148 if (!task1 || !task2) in SYSCALL_DEFINE5()
152 get_task_struct(task2); in SYSCALL_DEFINE5()
160 &task2->signal->exec_update_lock); in SYSCALL_DEFINE5()
164 !ptrace_may_access(task2, PTRACE_MODE_READ_REALCREDS)) { in SYSCALL_DEFINE5()
174 filp2 = get_file_raw_ptr(task2, idx in SYSCALL_DEFINE5()
98 kcmp_epoll_target(struct task_struct *task1, struct task_struct *task2, unsigned long idx1, struct kcmp_epoll_slot __user *uslot) kcmp_epoll_target() argument
126 kcmp_epoll_target(struct task_struct *task1, struct task_struct *task2, unsigned long idx1, struct kcmp_epoll_slot __user *uslot) kcmp_epoll_target() argument
[all...]
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/core/task/full/
H A DIt_los_task_136.c68 TSK_INIT_PARAM_S task2 = { 0 }; in Testcase() local
79 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskF02; in Testcase()
80 task2.uwStackSize = TASK_STACK_SIZE_TEST; in Testcase()
81 task2.pcName = "Task_136_2"; in Testcase()
82 task2.usTaskPrio = TASK_PRIO_TEST_TASK - 1; in Testcase()
83 task2.uwResved = LOS_TASK_STATUS_DETACHED; in Testcase()
85 task2.usCpuAffiMask = CPUID_TO_AFFI_MASK(ArchCurrCpuid()); in Testcase()
95 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in Testcase()
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/mux/full/
H A DIt_los_mutex_007.c83 TSK_INIT_PARAM_S task2 = { 0 }; in Testcase() local
100 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskF02; in Testcase()
101 task2.usTaskPrio = (TASK_PRIO_TEST_TASK - 2); // 2, set reasonable priority. in Testcase()
102 task2.pcName = "VMuteB2_2"; in Testcase()
103 task2.uwStackSize = 0x900; in Testcase()
104 task2.uwResved = 0; in Testcase()
106 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in Testcase()
H A DIt_los_mutex_028.c98 TSK_INIT_PARAM_S task2 = {0}; in TaskA2Func() local
118 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskC2Func; in TaskA2Func()
119 task2.usTaskPrio = 10; // 10, set reasonable priority. in TaskA2Func()
120 task2.pcName = "TaskC"; in TaskA2Func()
121 task2.uwStackSize = TASK_STACK_SIZE_TEST; in TaskA2Func()
122 task2.uwResved = LOS_TASK_STATUS_DETACHED; in TaskA2Func()
124 task2.usCpuAffiMask = CPUID_TO_AFFI_MASK(ArchCurrCpuid()); in TaskA2Func()
126 ret = LOS_TaskCreate(&g_testTaskID03, &task2); in TaskA2Func()
H A DIt_los_mutex_027.c104 TSK_INIT_PARAM_S task2 = {0}; in TaskA1Func() local
124 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskC1Func; in TaskA1Func()
125 task2.usTaskPrio = 3; // 3, set reasonable priority. in TaskA1Func()
126 task2.pcName = "TaskC"; in TaskA1Func()
127 task2.uwStackSize = TASK_STACK_SIZE_TEST; in TaskA1Func()
128 task2.uwResved = LOS_TASK_STATUS_DETACHED; in TaskA1Func()
130 task2.usCpuAffiMask = CPUID_TO_AFFI_MASK(ArchCurrCpuid()); in TaskA1Func()
132 ret = LOS_TaskCreate(&g_testTaskID03, &task2); in TaskA1Func()
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/mux/smp/
H A DIt_smp_los_mux_006.c81 TSK_INIT_PARAM_S task2 = { 0 }; in Testcase() local
94 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)Task02; in Testcase()
95 task2.pcName = "Test Case 2"; in Testcase()
96 task2.uwStackSize = TASK_STACK_SIZE_TEST; in Testcase()
97 task2.uwResved = LOS_TASK_STATUS_DETACHED; in Testcase()
98 task2.usCpuAffiMask = CPUID_TO_AFFI_MASK(currCpuid2); in Testcase()
100 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in Testcase()
H A DIt_smp_los_mux_007.c76 TSK_INIT_PARAM_S task2 = { 0 }; in Testcase() local
92 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)Task02; in Testcase()
93 task2.pcName = "Test Case 2"; in Testcase()
94 task2.uwStackSize = TASK_STACK_SIZE_TEST; in Testcase()
95 task2.uwResved = LOS_TASK_STATUS_DETACHED; in Testcase()
96 task2.usCpuAffiMask = CPUID_TO_AFFI_MASK(currCpuid2); in Testcase()
98 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in Testcase()
/kernel/liteos_m/testsuites/sample/kernel/mux/
H A DIt_los_mutex_007.c78 TSK_INIT_PARAM_S task2 = {0}; in Testcase() local
94 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskF02; in Testcase()
95 task2.usTaskPrio = (TASK_PRIO_TEST - 2); // 2, set new task priority, it is higher than the current task. in Testcase()
96 task2.pcName = "VMuteB2_2"; in Testcase()
97 task2.uwStackSize = LOSCFG_BASE_CORE_TSK_MIN_STACK_SIZE; in Testcase()
98 task2.uwResved = 0; in Testcase()
100 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in Testcase()
H A DIt_los_mutex_014.c58 TSK_INIT_PARAM_S task2 = {0}; in Testcase() local
75 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskF01; in Testcase()
76 task2.usTaskPrio = (TASK_PRIO_TEST - 2); // 2, set new task priority, it is higher than the current task. in Testcase()
77 task2.pcName = "VMuteB9_2"; in Testcase()
78 task2.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in Testcase()
79 task2.uwResved = 0; in Testcase()
81 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in Testcase()
H A DIt_los_mutex_029.c82 TSK_INIT_PARAM_S task2 = {0}; in TaskFuncA() local
105 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskFuncD; in TaskFuncA()
107 task2.usTaskPrio = 2; in TaskFuncA()
108 task2.pcName = "TaskD"; in TaskFuncA()
109 task2.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in TaskFuncA()
110 task2.uwResved = LOS_TASK_STATUS_DETACHED; in TaskFuncA()
112 ret = LOS_TaskCreate(&g_testTaskID04, &task2); in TaskFuncA()
H A DIt_los_mutex_027.c82 TSK_INIT_PARAM_S task2 = {0}; in TaskFuncA() local
100 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskFuncC; in TaskFuncA()
102 task2.usTaskPrio = 3; in TaskFuncA()
103 task2.pcName = "TaskC"; in TaskFuncA()
104 task2.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in TaskFuncA()
105 task2.uwResved = LOS_TASK_STATUS_DETACHED; in TaskFuncA()
107 ret = LOS_TaskCreate(&g_testTaskID03, &task2); in TaskFuncA()
H A DIt_los_mutex_030.c77 TSK_INIT_PARAM_S task2 = {0}; in TaskFuncA() local
94 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskFuncC; in TaskFuncA()
96 task2.usTaskPrio = 3; in TaskFuncA()
97 task2.pcName = "TaskC"; in TaskFuncA()
98 task2.uwStackSize = TASK_STACK_SIZE_TEST; in TaskFuncA()
99 task2.uwResved = LOS_TASK_STATUS_DETACHED; in TaskFuncA()
101 ret = LOS_TaskCreate(&g_testTaskID03, &task2); in TaskFuncA()
H A DIt_los_mutex_031.c80 TSK_INIT_PARAM_S task2 = {0}; in TaskFuncA() local
101 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskFuncC; in TaskFuncA()
103 task2.usTaskPrio = 3; in TaskFuncA()
104 task2.pcName = "TaskC"; in TaskFuncA()
105 task2.uwStackSize = TASK_STACK_SIZE_TEST; in TaskFuncA()
106 task2.uwResved = LOS_TASK_STATUS_DETACHED; in TaskFuncA()
108 ret = LOS_TaskCreate(&g_testTaskID03, &task2); in TaskFuncA()
H A DIt_los_mutex_034.c83 TSK_INIT_PARAM_S task2 = {0}; in TaskFuncA() local
101 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskFuncC; in TaskFuncA()
103 task2.usTaskPrio = 5; in TaskFuncA()
104 task2.pcName = "TaskC"; in TaskFuncA()
105 task2.uwStackSize = TASK_STACK_SIZE_TEST; in TaskFuncA()
106 task2.uwResved = LOS_TASK_STATUS_DETACHED; in TaskFuncA()
108 ret = LOS_TaskCreate(&g_testTaskID03, &task2); in TaskFuncA()
H A DIt_los_mutex_033.c85 TSK_INIT_PARAM_S task2 = {0}; in TaskFuncA() local
103 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskFuncC; in TaskFuncA()
105 task2.usTaskPrio = 5; in TaskFuncA()
106 task2.pcName = "TaskC"; in TaskFuncA()
107 task2.uwStackSize = TASK_STACK_SIZE_TEST; in TaskFuncA()
108 task2.uwResved = LOS_TASK_STATUS_DETACHED; in TaskFuncA()
110 ret = LOS_TaskCreate(&g_testTaskID03, &task2); in TaskFuncA()
/kernel/liteos_m/testsuites/sample/kernel/task/
H A DIt_los_task_085.c55 TSK_INIT_PARAM_S task2 = { 0 }; in TaskF01() local
56 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskF02; in TaskF01()
57 task2.usTaskPrio = TASK_PRIO_TEST - 3; // 3, set new task priority base on testsuite task`s priority. in TaskF01()
58 task2.pcName = "Tsk085B"; in TaskF01()
59 task2.uwStackSize = TASK_STACK_SIZE_TEST + 0x200; in TaskF01()
62 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in TaskF01()
/kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/queue/full/
H A DIt_los_queue_head_032.c76 TSK_INIT_PARAM_S task2 = { 0 }; in Testcase() local
83 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)ItQueueHead032F02; in Testcase()
84 task2.pcName = "TskName2"; in Testcase()
85 task2.uwStackSize = TASK_STACK_SIZE_TEST; in Testcase()
86 task2.usTaskPrio = 21; // 21, Set task priority. in Testcase()
103 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in Testcase()
H A DIt_los_queue_head_031.c78 TSK_INIT_PARAM_S task2 = { 0 }; in Testcase() local
93 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)ItQueueHead031F02; in Testcase()
94 task2.pcName = "TskName2"; in Testcase()
95 task2.uwStackSize = TASK_STACK_SIZE_TEST; in Testcase()
96 task2.usTaskPrio = 23; // 23, Set task priority. in Testcase()
98 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in Testcase()
H A DIt_los_queue_043.c77 TSK_INIT_PARAM_S task2 = { 0 }; in Testcase() local
84 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskF02; in Testcase()
85 task2.pcName = "TskName2"; in Testcase()
86 task2.uwStackSize = TASK_STACK_SIZE_TEST; in Testcase()
87 task2.usTaskPrio = 21; // 21, Set the priority according to the task purpose,a smaller number means a higher priority. in Testcase()
104 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in Testcase()
H A DIt_los_queue_042.c80 TSK_INIT_PARAM_S task2 = { 0 }; in Testcase() local
95 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskF01; in Testcase()
96 task2.pcName = "TskName2"; in Testcase()
97 task2.uwStackSize = TASK_STACK_SIZE_TEST; in Testcase()
98 task2.usTaskPrio = 23; // 23, Set the priority according to the task purpose,a smaller number means a higher priority. in Testcase()
100 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in Testcase()
/kernel/liteos_m/testsuites/sample/kernel/queue/
H A DIt_los_queue_043.c71 TSK_INIT_PARAM_S task2 = { 0 }; in Testcase() local
78 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskF02; in Testcase()
79 task2.pcName = "TskName2"; in Testcase()
80 task2.uwStackSize = TASK_STACK_SIZE_TEST; in Testcase()
81 task2.usTaskPrio = 21; // 21, Set the priority according to the task purpose,a smaller number means a higher priority. in Testcase()
96 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in Testcase()
H A DIt_los_queue_042.c75 TSK_INIT_PARAM_S task2 = { 0 }; in Testcase() local
89 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)TaskF01; in Testcase()
90 task2.pcName = "TskName2"; in Testcase()
91 task2.uwStackSize = TASK_STACK_SIZE_TEST; in Testcase()
92 task2.usTaskPrio = 23; // 23, Set the priority according to the task purpose,a smaller number means a higher priority. in Testcase()
94 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in Testcase()
H A DIt_los_queue_head_032.c72 TSK_INIT_PARAM_S task2 = { 0 }; in Testcase() local
79 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)ItQueueHead032F02; in Testcase()
80 task2.pcName = "TskName2"; in Testcase()
81 task2.uwStackSize = TASK_STACK_SIZE_TEST; in Testcase()
82 task2.usTaskPrio = 21; // 21, Set the priority according to the task purpose,a smaller number means a higher priority. in Testcase()
98 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in Testcase()
H A DIt_los_queue_head_031.c74 TSK_INIT_PARAM_S task2 = { 0 }; in Testcase() local
88 task2.pfnTaskEntry = (TSK_ENTRY_FUNC)ItQueueHead031F02; in Testcase()
89 task2.pcName = "TskName2"; in Testcase()
90 task2.uwStackSize = TASK_STACK_SIZE_TEST; in Testcase()
91 task2.usTaskPrio = 23; // 23, Set the priority according to the task purpose,a smaller number means a higher priority. in Testcase()
93 ret = LOS_TaskCreate(&g_testTaskID02, &task2); in Testcase()

Completed in 8 milliseconds

12