Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:show_fd_locks

Proto:void show_fd_locks(struct seq_file *f, struct file *filp, struct files_struct *files)

Type:void

Parameter:

TypeParameterName
struct seq_file *f
struct file *filp
struct files_struct *files
2914  inode = locks_inode(filp)
2916  id = 0
2918  ctx = smp_load_acquire( & i_flctx)
2919  If Not ctx Then Return
2922  spin_lock( & flc_lock)
2923  __show_fd_locks(f, & flc_flock, & id, filp, files)
2924  __show_fd_locks(f, & flc_posix, & id, filp, files)
2925  __show_fd_locks(f, & flc_lease, & id, filp, files)
2926  spin_unlock( & flc_lock)