Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:userfaultfd_show_fdinfo

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

Type:void

Parameter:

TypeParameterName
struct seq_file *m
struct file *f
1898  ctx = needed for tty driver, and maybe others
1900  pending = 0 , total = 0
1902  spin_lock_irq( & lock)
1904  pending++
1905  total++
1908  total++
1910  spin_unlock_irq( & lock)
1917  seq_printf(m, "pending:\t%lu\ntotal:\t%lu\nAPI:\t%Lx:%x:%Lx\n", pending, total, If the UFFDIO_API is upgraded someday, the UFFDIO_UNREGISTER and* UFFDIO_WAKE ioctls should be defined as _IOW and not as _IOR. In* userfaultfd.h we assumed the kernel was reading (instead _IOC_READ* means the userland is reading)., atures requested from the userspace , UFFD_API_IOCTLS | UFFD_API_RANGE_IOCTLS)