函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mnt_clone_write - get write access to a mount*@mnt: the mount on which to take a write* This is effectively like mnt_want_write, except* it must only be used to take an extra write reference* on a mountpoint that we already know has a write reference

函数原型:int mnt_clone_write(struct vfsmount *mnt)

返回类型:int

参数:

类型参数名称
struct vfsmount *mnt
377  如果__mnt_is_readonly: check whether a mount is read-only*@mnt: the mount to check for its write status* This shouldn't be used directly ouside of the VFS.* It does not guarantee that the filesystem will stay* r/w, just that it is right *now*. This can not and则返回:负EROFS
379  禁止抢占()
380  mnt_inc_writers(real_mount(mnt))
381  禁用抢占和中断()
382  返回:0
调用者
名称描述
__mnt_want_write_file__mnt_want_write_file - get write access to a file's mount*@file: the file who's mount on which to take a write* This is like __mnt_want_write, but it takes a file and can* do some optimisations if the file is open for write already