Function report |
Source Code:kernel\taskstats.c |
Create Date:2022-07-28 11:49:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:add_del_listener
Proto:static int add_del_listener(pid_t pid, const struct cpumask *mask, int isadd)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
pid_t | pid | |
const struct cpumask * | mask | |
int | isadd |
283 | ret = 0 |
285 | If Not pumask_subset - (*src1p & ~*src2p) == 0*@src1p: the first input*@src2p: the second input* Returns 1 if *@src1p is a subset of *@src2p, else returns 0 Then Return -EINVAL |
288 | If current_user_ns() != userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ? Then Return -EINVAL |
296 | s = kmalloc_node(sizeof(structlistener), GFP_KERNEL, cpu_to_node(cpu)) |
298 | If Not s Then |
303 | valid = 1 |
305 | listeners = per_cpu(listener_array, cpu) |
306 | lock for writing |
312 | s = NULL |
313 | exists : |
317 | Return 0 |
321 | cleanup : |
323 | listeners = per_cpu(listener_array, cpu) |
324 | lock for writing |
334 | Return ret |
Name | Describe |
---|---|
cmd_attr_register_cpumask | |
cmd_attr_deregister_cpumask |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |