函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack_lsm.c Create Date:2022-07-27 20:49:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:smack_sb_eat_lsm_opts

函数原型:static int smack_sb_eat_lsm_opts(char *options, void **mnt_opts)

返回类型:int

参数:

类型参数名称
char *options
void **mnt_opts
722  from等于options, to等于options
723  bool first = true
725  当1循环
726  next等于strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for
728  char * arg = NULL
730  如果nextlen等于nextfrom
732  否则len等于strlen - Find the length of a string*@s: The string to be sized
735  token等于match_opt_prefix(from, len, & arg)
736  如果token不等于Opt_error
740  释放内存
743  * mnt_opts = NULL
744  返回:rc
746  否则
747  如果非first
748  from自减
749  len自加
751  如果to不等于frommemmove(to, from, len)
753  to加等于len
754  first = false
756  如果非from[len]则退出
758  from加等于len加1
760  to等于'\0'
761  返回:0