Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_stack.c Create Date:2022-07-28 12:11:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:stack_max_size_write

Proto:static ssize_t stack_max_size_write(struct file *filp, const char __user *ubuf, size_t count, loff_t *ppos)

Type:ssize_t

Parameter:

TypeParameterName
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  If ret Then Return 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  Return count