函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:parse_mount_options():* Set @opts to mount options specified in @data. If an option is not* specified in @data, set it to its default value.* Note: @data may be NULL (in which case all options are set to default).

函数原型:static int parse_mount_options(char *data, int op, struct pts_mount_opts *opts)

返回类型:int

参数:

类型参数名称
char *data
intop
struct pts_mount_opts *opts
252  setuid等于0
253  setgid等于0
254  uid等于GLOBAL_ROOT_UID
255  gid等于GLOBAL_ROOT_GID
256  mode等于DEVPTS_DEFAULT_MODE
257  ptmxmode等于ptmx is a new node in /dev/pts and will be unused in legacy (single-* instance) mode. To prevent surprises in user space, set permissions of* ptmx to 0. Use 'chmod' or remount with '-o ptmxmode' to set meaningful* permissions.
258  max等于Absolute limit
263  如果op恒等于PARSE_MOUNTreserve等于mnt_ns恒等于mnt_ns
267  当((p = 分割字符串) != NULL)循环
272  如果非p则继续下一循环
275  token等于match_token: - Find a token (and optional args) in a string*@s: the string to examine for token/argument pairs*@table: match_table_t describing the set of allowed option tokens and the* arguments that may be associated with them. Must be terminated with a
277  :token恒等于Opt_uid
281  如果非uid_valid(uid)则返回:负EINVAL
283  uid等于uid
284  setuid等于1
285  退出
286  :token恒等于Opt_gid
290  如果非gid_valid(gid)则返回:负EINVAL
292  gid等于gid
293  setgid等于1
294  退出
295  :token恒等于Opt_mode
298  mode等于option按位与S_IALLUGO
299  退出
300  :token恒等于Opt_ptmxmode
303  ptmxmode等于option按位与S_IALLUGO
304  退出
305  :token恒等于Opt_newinstance
306  退出
307  :token恒等于Opt_max
311  max等于option
312  退出
313  默认
314  打印错误信息("called with bogus options\n")
315  返回:负EINVAL
319  返回:0
调用者
名称描述
devpts_remount
devpts_fill_super