函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:tracing_cpumask_write

函数原型:static ssize_t tracing_cpumask_write(struct file *filp, const char __user *ubuf, size_t count, loff_t *ppos)

返回类型:ssize_t

参数:

类型参数名称
struct file *filp
const char __user *ubuf
size_tcount
loff_t *ppos
4563  tr等于s or device private pointer
4567  如果非分配CPU掩码则返回:负ENOMEM
4570  err等于从用户串中提取CPU信息
4571  如果err则转到:err_unlock
4574  禁止中断()
4575  r sched/core.c and kernel_lock.c: ( & * max_lock is used to protect the swapping of buffers * when taking a max snapshot. The buffers themselves are * protected by per_cpu spinlocks. But the action of the swap * needs its own lock. * This is defined as a arch_spinlock_t in order to help * with)
4576  for_each_tracing_cpu(cpu)
4581  如果测试CPU信息且非测试CPU信息
4583  atomic_inc( & disabled)
4586  如果非测试CPU信息测试CPU信息
4588  atomic_dec( & disabled)
4592  arch_spin_unlock( & * max_lock is used to protect the swapping of buffers * when taking a max snapshot. The buffers themselves are * protected by per_cpu spinlocks. But the action of the swap * needs its own lock. * This is defined as a arch_spinlock_t in order to help * with)
4593  开中断()
4595  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
4596  释放CPU掩码
4598  返回:count
4600  err_unlock :
4601  释放CPU掩码
4603  返回:err