函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:single_open

函数原型:int single_open(struct file *file, int (*show)(struct seq_file *, void *), void *data)

返回类型:int

参数:

类型参数名称
struct file *file
int (*show
void *data
569  op等于开辟内存
570  res等于负ENOMEM
572  如果op
573  start等于single_start
574  next等于single_next
575  stop等于single_stop
576  show等于show
577  res等于seq_open - initialize sequential file*@file: file we initialize*@op: method table describing the sequence* seq_open() sets @file, associating it with a sequence described* by @op. @op->start() sets the iterator up and returns the first
578  如果非resprivate等于data
580  否则释放内存
583  返回:res
调用者
名称描述
psi_io_open
psi_memory_open
psi_cpu_open
pm_qos_debug_open
irq_debug_open
dump_open
prof_cpu_mask_proc_open
tk_debug_sleep_time_open
udelay_test_open
lstats_open
tracing_trace_options_open
tracing_clock_open
tracing_time_stamp_mode_open
event_hist_open
seq_profile_open
seq_ns_stacked_open
seq_ns_nsstacked_open
seq_ns_level_open
seq_ns_name_open
seq_rawdata_open
single_open_size
mtrr_open
sched_feat_open
percpu_stats_open