函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:stack_max_size_write

函数原型:static ssize_t stack_max_size_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
342  ptr等于 needed for tty driver, and maybe others
346  ret等于kstrtoul_from_user(ubuf, count, 10, & val)
347  如果ret则返回:ret
350  local_irq_save(flags)
357  __this_cpu_inc(disable_stack_tracer)
359  r sched/core.c and kernel_lock.c: ( & stack_trace_max_lock)
360  ptr等于val
361  arch_spin_unlock( & stack_trace_max_lock)
363  __this_cpu_dec(disable_stack_tracer)
364  local_irq_restore(flags)
366  返回:count