Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:We only lock f_pos if we have threads or if the file might be* shared with another process. In both cases we'll have an elevated* file count (done either by fdget() or by fork()).

Proto:void set_close_on_exec(unsigned int fd, int flag)

Type:void

Parameter:

TypeParameterName
unsigned intfd
intflag
820  files = files
822  spin_lock( & written part on a separate cache line in SMP)
823  fdt = files_fdtable(files)
824  If flag Then __set_close_on_exec(fd, fdt)
826  Else __clear_close_on_exec(fd, fdt)
828  spin_unlock( & written part on a separate cache line in SMP)
Caller
NameDescribe
do_vfs_ioctlWhen you add any new common ioctls to the switches above and below* please update compat_sys_ioctl() too.* do_vfs_ioctl() is not for drivers and not intended to be EXPORT_SYMBOL()'d.* It's just a simple helper for sys_ioctl and compat_sys_ioctl.