Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ep_show_fdinfo

Proto:static void ep_show_fdinfo(struct seq_file *m, struct file *f)

Type:void

Parameter:

TypeParameterName
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  When rbp cycle
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  If 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. Then Break
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.