Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_make_slave

Proto:static int do_make_slave(struct mount *mnt)

Type:int

Parameter:

TypeParameterName
struct mount *mnt
77  If list_empty - tests whether a list is empty*@head: the list to test. Then
78  If IS_MNT_SHARED(mnt) Then
82  master = slave is on master->mnt_slave_list
83  If Not master Then
91  Return 0
93  Else
100  When m != mnt cycle
102  master = m
103  Break
106  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
107  peer group identifier = 0
108  CLEAR_MNT_SHARED(mnt)
110  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(slave_mnt, & list of slave mounts , mnt_slave)
111  slave is on master->mnt_slave_list = master
112  list_move - delete from one list and add as another's head*@list: the entry to move*@head: the head that will precede our entry
113  list_splice - join two lists, this is designed for stacks*@list: the new list to add.*@head: the place to add it in the first list.
114  Initialization list head
115  slave is on master->mnt_slave_list = master
116  Return 0
Caller
NameDescribe
change_mnt_propagationvfsmount lock must be held for write