Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-28 06:12:04
Last Modify:2022-05-21 09:47:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dentry_name

Proto:static __attribute__((__noinline__)) char *dentry_name(char *buf, char *end, const struct dentry *d, struct printf_spec spec, const char *fmt)

Type:char

Parameter:

TypeParameterName
char *buf
char *end
const struct dentry *d
struct printf_specspec
const char *fmt
872  Case fmt[1] == '2'
872  Case fmt[1] == '3'
872  Case fmt[1] == '4'
873  depth = fmt[1] - '0'
874  Break
875  Default
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  When i < depth cycle
881  If check_pointer( & buf, end, d, spec) Then
883  Return buf
886  p = READ_ONCE( parent directory )
887  array[i] = READ_ONCE(name)
888  If p == d Then
889  If i Then array[i] = ""
891  i++
892  Break
895  s = array[--i]
896  When n != # of digits/chars cycle
897  c = s++
898  If Not c Then
899  If Not i Then Break
901  c = '/'
902  s = array[--i]
904  If buf < end Then buf = 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  Return 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.
Caller
NameDescribe
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