函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ep_show_fdinfo

函数原型:static void ep_show_fdinfo(struct seq_file *m, struct file *f)

返回类型:void

参数:

类型参数名称
struct seq_file *m
struct file *f
928  ep等于 needed for tty driver, and maybe others
931  mutex_lock( & * This mutex is used to ensure that files are not removed * while epoll is using them. This is held during the event * collection loop, the file cleanup path, the epoll file exit * code and the ctl operations.)
932 rbp循环
933  epi等于rb_entry(rbp, structepitem, rbn)
934  inode等于file_inode(file)
936  seq_printf(m, "tfd: %8d events: %8x data: %16llx pos:%lli ino:%lx sdev:%x\n", fd, events, (longlong)data, (longlong)f_pos, Stat data, not accessed from path walking , s_dev)
942  如果seq_has_overflowed - check if the buffer has overflowed*@m: the seq_file handle* seq_files have a buffer which may overflow. When this happens a larger* buffer is reallocated and all the data will be printed again.退出
945  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.