函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:int seq_open(struct file *file, const struct seq_operations *op)

返回类型:int

参数:

类型参数名称
struct file *file
const struct seq_operations *op
55  WARN_ON( needed for tty driver, and maybe others )
57  p等于Shortcuts
58  如果非p则返回:负ENOMEM
61  needed for tty driver, and maybe others 等于p
63  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & lock)
64  op等于op
68  file等于file
75  f_version等于0
86  f_mode与等于le can be accessed using pwrite 的反
87  返回:0
调用者
名称描述
gcov_seq_openpen() implementation for gcov data files. Create a copy of the profiling* data set and initialize the iterator and seq_file interface.
fei_open
show_traces_open
tracing_saved_tgids_open
tracing_saved_cmdlines_open
tracing_err_log_open
tracing_stat_openThe session stat is refilled and resorted at each stat file opening
ftrace_formats_open
stack_trace_open
trace_format_open
ftrace_event_open
event_trigger_regex_open
synth_events_open
probes_open
profile_open
dyn_event_open
probes_open
profile_open
ftrace_pid_open
bpffs_map_open
swaps_open
kmemleak_open
smk_open_cipsosmk_open_cipso - open() for /smack/cipso*@inode: inode structure representing file*@file: "cipso" file pointer* Connect our cipso_seq_* operations with /smack/cipso* file_operations
smk_open_cipso2smk_open_cipso2 - open() for /smack/cipso2*@inode: inode structure representing file*@file: "cipso2" file pointer* Connect our cipso_seq_* operations with /smack/cipso2* file_operations
smk_open_net4addrsmk_open_net4addr - open() for /smack/netlabel*@inode: inode structure representing file*@file: "netlabel" file pointer* Connect our net4addr_seq_* operations with /smack/netlabel* file_operations
smk_open_net6addrsmk_open_net6addr - open() for /smack/netlabel*@inode: inode structure representing file*@file: "netlabel" file pointer* Connect our net6addr_seq_* operations with /smack/netlabel* file_operations
smk_open_onlycap
smk_open_load_selfsmk_open_load_self - open() for /smack/load-self2*@inode: inode structure representing file*@file: "load" file pointer* For reading, use load_seq_* seq_file reading operations.
smk_open_load2smk_open_load2 - open() for /smack/load2*@inode: inode structure representing file*@file: "load2" file pointer* For reading, use load2_seq_* seq_file reading operations.
smk_open_load_self2smk_open_load_self2 - open() for /smack/load-self2*@inode: inode structure representing file*@file: "load" file pointer* For reading, use load_seq_* seq_file reading operations.
smk_open_relabel_selfsmk_open_relabel_self - open() for /smack/relabel-self*@inode: inode structure representing file*@file: "relabel-self" file pointer* Connect our relabel_self_seq_* operations with /smack/relabel-self* file_operations
profiles_open
ima_measurements_open
ima_ascii_measurements_open
single_open
__seq_open_private
ei_open
modules_openThis also sets the "private" pointer to non-NULL if the* kernel pointers should be hidden (so you can just test* "m->private" to see if you should keep the values private).* We use the same logic as for /proc/kallsyms.
slabinfo_open