函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-27 07:09:21
Last Modify:2022-05-21 09:47:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dentry_name

函数原型:static __attribute__((__noinline__)) char *dentry_name(char *buf, char *end, const struct dentry *d, struct printf_spec spec, const char *fmt)

返回类型:char

参数:

类型参数名称
char *buf
char *end
const struct dentry *d
struct printf_specspec
const char *fmt
872  :fmt[1]恒等于'2'
872  :fmt[1]恒等于'3'
872  :fmt[1]恒等于'4'
873  depth等于fmt[1]减'0'
874  退出
875  默认
876  depth等于1
879  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
880 i小于depth循环
881  如果check_pointer( & buf, end, d, spec)则
883  返回:buf
886  p等于READ_ONCE( parent directory )
887  array[i]等于READ_ONCE(name)
888  如果p恒等于d
889  如果iarray[i]等于""
891  i自加
892  退出
895  s等于array[--i]
896 n不等于 # of digits/chars 循环
897  c等于s自加
898  如果非c
899  如果非i退出
901  c等于'/'
902  s等于array[--i]
904  如果buf小于endbuf等于c
907  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
908  返回:Handle field width padding for a string.*@buf: current buffer position*@n: length of string*@end: end of output buffer*@spec: for field width and flags* Returns: new buffer position after padding.
调用者
名称描述
file_dentry_name
pointerShow a '%p' thing. A kernel extension is that the '%p' is followed* by an extra set of alphanumeric characters that are extended format* specifiers.* Please update scripts/checkpatch.pl when adding/removing conversion* characters