函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:logfc - Log a message to a filesystem context*@fc: The filesystem context to log to.*@fmt: The format of the buffer.

函数原型:void logfc(struct fs_context *fc, const char *fmt, ...)

返回类型:void

参数:

类型参数名称
struct fs_context *fc
const char *fmt
390  store_failure[]等于"OOM: Can't store error string"
391  struct fc_log * log = fc ? log : NULL
397  va_start(va, fmt)
398  如果非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
399  p等于fmt
400  转到:unformatted_string
402  如果字符串比较恒等于0则
403  p等于va_arg(va, constchar * )
404  转到:unformatted_string
407  q等于Simplified asprintf.
408  copied_string :
409  如果非q则转到:store_failure
411  freeable等于1
412  转到:store_string
414  unformatted_string :
415  如果p大于等于__start_rodatap小于__end_rodata则转到:const_string
418  如果logwithin_module_core((unsignedlong)p, Owner module for strings that don't then need freeing )则转到:const_string
420  q等于kstrdup - allocate space for and copy an existing string*@s: the string to duplicate*@gfp: the GFP mask used in the kmalloc() call when allocating memory* Return: newly allocated copy of @s or %NULL in case of error
421  转到:copied_string
423  store_failure :
424  p等于store_failure
425  const_string :
426  q等于p
427  freeable等于0
428  store_string :
429  如果非log
431  :fmt[0]恒等于'w'
433  退出
434  :fmt[0]恒等于'e'
436  退出
437  默认
439  退出
441  如果freeable释放内存
443  否则
444  logsize等于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(buffer)
447  index等于 Insertion index in buffer[] 按位与logsize减1
448  BUILD_BUG_ON - break compile if a condition is true( Insertion index in buffer[] 的长度 != sizeof(u8) || Removal index in buffer[] 的长度 != sizeof(u8))
457  buffer[index]等于q
458  Mask of kfree'able items in buffer[] 与等于1左移index位的值的反
459  Mask of kfree'able items in buffer[] 或等于freeable左移index
460  Insertion index in buffer[] 自加
462  va_end(va)