函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cpuset.c Create Date:2022-07-27 12:19:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Common handling for a write to a "cpus" or "mems" file.

函数原型:static ssize_t cpuset_write_resmask(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)

返回类型:ssize_t

参数:

类型参数名称
struct kernfs_open_file *of
char *buf
size_tnbytes
loff_toff
2332  cs等于css_cs(of_css(of))
2334  retval等于负ENODEV
2336  buf等于strstrip(buf)
2357  获取指定CSS参考
2358  kernfs_break_active_protection( published fields )
2359  lush_work - wait for a work to finish executing the last queueing instance*@work: the work to flush* Wait until @work has finished execution
2361  get_online_cpus()
2362  percpu_down_write( & cpuset_rwsem)
2363  如果非venient tests for these bits 则转到:out_unlock
2366  trialcs等于alloc_trial_cpuset - allocate a trial cpuset*@cs: the cpuset that the trial cpuset duplicates
2367  如果非trialcs
2368  retval等于负ENOMEM
2369  转到:out_unlock
2373  :private恒等于FILE_CPULIST
2375  退出
2376  :private恒等于FILE_MEMLIST
2378  退出
2379  默认
2380  retval等于负EINVAL
2381  退出
2384  _cpuset - free the cpuset*@cs: the cpuset to be freed
2385  out_unlock :
2386  percpu_up_write( & cpuset_rwsem)
2387  put_online_cpus()
2388  kernfs_unbreak_active_protection( published fields )
2389  设置一个css引用
2390  lush_workqueue - ensure that any scheduled work has run to completion.*@wq: workqueue to flush* This function sleeps until all work items which were queued on entry* have finished execution, but it is not livelocked by new incoming ones.
2391  返回:如果retval否则nbytes