Function Report

Linux Kernel (v4.4)

Source File:fs\fs_struct.c Create Date:2016-01-14 14:42:49
Last Modify:2016-01-11 07:01:32 Copyright©Brick
home page Tree
Annotate the kernelChinese

Function Name:exit_fs

Function:void exit_fs(struct task_struct *tsk)

Return Type:void


Type Parameter NameRemarks
struct task_struct * tsk

Function description:

95  *fs = filesystem information
97  If fs then
99  Protects->fs,->files,->mm,->group_info,->comm, keyring subscriptions and synchronises with wait4(). Also used in procfs. Also pins the final release of task.io_context. Also protects->cpuset and->cgroup.subsys[]. And->vfork_done.
100  spin_lock( &lock)
101  filesystem information = NULL
102  kill = !--users
103  spin_unlock( &lock)
104  task_unlock(tsk)
105  If kill then free_fs_struct(fs)
Function NameFunction description
copy_processCreate a new process