函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:char *mangle_path(char *s, const char *p, const char *esc)

返回类型:char

参数:

类型参数名称
char *s
const char *p
const char *esc
436 s小于等于p循环
437  c等于p自加
438  如果非c
439  返回:s
441  s自加等于c
442  否则如果s加4大于p
443  退出
444  否则
445  s自加等于'\\'
446  s自加等于'0'加c按位与0300的值右移6位的值
447  s自加等于'0'加c按位与070的值右移3位的值
448  s自加等于'0'加c按位与07的值
451  返回:NULL
调用者
名称描述
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.
seq_buf_pathseq_buf_path - copy a path into the sequence buffer*@s: seq_buf descriptor*@path: path to write into the sequence buffer