Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\seq_file.c Create Date:2022-07-28 20:09:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mangle_path - mangle and copy path to buffer beginning*@s: buffer start*@p: beginning of path in above buffer*@esc: set of characters that need escaping* Copy the path from @p to @s, replacing each occurrence of character from*@esc with usual octal escape

Proto:char *mangle_path(char *s, const char *p, const char *esc)

Type:char

Parameter:

TypeParameterName
char *s
const char *p
const char *esc
436  When s <= p cycle
437  c = p++
438  If Not c Then
439  Return s
441  s++ = c
442  Else if s + 4 > p Then
443  Break
444  Else
445  s++ = '\\'
446  s++ = '0' + ((c & 0300) >> 6)
447  s++ = '0' + ((c & 070) >> 3)
448  s++ = '0' + (c & 07)
451  Return NULL
Caller
NameDescribe
seq_pathseq_path - seq_file interface to print a pathname*@m: the seq_file handle*@path: the struct path to print*@esc: set of characters to escape in the output* return the absolute path of 'path', as represented by the* dentry / mnt pair in the path parameter.
seq_path_rootSame as seq_path, but relative to supplied root.
seq_dentryrns the path of the 'dentry' from the root of its filesystem.