函数逻辑报告

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

函数名称:Ripoff of 'select_parent()'* search the list of submounts for a given mountpoint, and move any* shrinkable submounts to the 'graveyard' list.

函数原型:static int select_submounts(struct mount *parent, struct list_head *graveyard)

返回类型:int

参数:

类型参数名称
struct mount *parent
struct list_head *graveyard
2922  this_parent等于parent
2924  found等于0
2926  repeat :
2927  next等于链表后项
2928  resume :
2929 next不等于 list of children, anchored here 循环
2930  tmp等于next
2931  mnt等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(tmp, structmount, mnt_child)
2933  next等于链表后项
2934  如果非mnt_flags按位与MNT_SHRINKABLE的值则继续下一循环
2939  如果非链表为空
2940  this_parent等于mnt
2941  转到:repeat
2946  found自加
2952  如果this_parent不等于parent
2953  next等于链表后项
2954  this_parent等于mnt_parent
2955  转到:resume
2957  返回:found
调用者
名称描述
shrink_submounts