Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack_lsm.c Create Date:2022-07-28 19:20:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:smack_sb_eat_lsm_opts

Proto:static int smack_sb_eat_lsm_opts(char *options, void **mnt_opts)

Type:int

Parameter:

TypeParameterName
char *options
void **mnt_opts
722  from = options , to = options
723  bool first = true
725  When 1 cycle
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  If next Then len = next - from
732  Else len = strlen - Find the length of a string*@s: The string to be sized
735  token = match_opt_prefix(from, len, & arg)
736  If token != Opt_error Then
740  kfree(arg)
743  * mnt_opts = NULL
744  Return rc
746  Else
747  If Not first Then
748  from--
749  len++
751  If to != from Then memmove(to, from, len)
753  to += len
754  first = false
756  If Not from[len] Then Break
758  from += len + 1
760  to = '\0'
761  Return 0