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:do_close_on_exec

Proto:void do_close_on_exec(struct files_struct *files)

Type:void

Parameter:

TypeParameterName
struct files_struct *files
679  spin_lock( & written part on a separate cache line in SMP)
680  cycle
682  fd = i * BITS_PER_LONG
683  fdt = files_fdtable(files)
684  If fd >= max_fds Then Break
686  set = close_on_exec[i]
687  If Not set Then Continue
689  close_on_exec[i] = 0
690  When set cycle
692  If Not (set & 1) Then Continue
695  If Not file Then Continue
701  cond_resched()
706  spin_unlock( & written part on a separate cache line in SMP)
Caller
NameDescribe
flush_old_execCalling this is the point of no return. None of the failures will be* seen by userspace since either the process is already taking a fatal* signal (via de_thread() or coredump), or will have SEGV raised