函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namespace.c Create Date:2022-07-29 10:39:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:process a list of expirable mountpoints with the intent of discarding any* mountpoints that aren't in use and haven't been touched since last we came* here

函数原型:void mark_mounts_for_expiry(struct list_head *mounts)

返回类型:void

参数:

类型参数名称
struct list_head *mounts
2883  LIST_HEAD(graveyard)
2885  如果链表为空则返回
2888  namespace_lock()
2889  lock_mount_hash()
2898  如果非xchg( & true if marked for expiry , 1)或heck if the mount 'mnt' can be unmounted successfully.*@mnt: the mount to be checked for unmount* NOTE: unmounting 'mnt' would naturally propagate to all* other mounts its parent propagates to.* Check if any of these mounts that **do not have submounts**则继续下一循环
2901  链表项移动到头部
2903  当非链表为空循环
2904  mnt等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & graveyard, structmount, mnt_expire)
2905  vfsmount lock must be held for write
2906  mount_lock must be held* namespace_sem must be held for write
2908  unlock_mount_hash()
2909  namespace_unlock()