函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\relay.c Create Date:2022-07-27 12:51:43
Last Modify:2020-03-17 19:20:22 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:relay_create_buf_file

函数原型:static struct dentry *relay_create_buf_file(struct rchan *chan, struct rchan_buf *buf, unsigned int cpu)

返回类型:struct dentry

参数:

类型参数名称
struct rchan *chan
struct rchan_buf *buf
unsigned intcpu
422  tmpname等于分配内存并置零
423  如果非tmpname则返回:NULL
425  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
428  dentry等于create_buf_file(tmpname, parent dentry passed to open , S_IRUSR, buf, & One global buffer ? )
431  如果是错误dentry = NULL
434  kfree(tmpname)
436  返回:dentry
调用者
名称描述
relay_open_buflay_open_buf - create a new relay channel buffer* used by relay_open() and CPU hotplug.
relay_late_setup_fileslay_late_setup_files - triggers file creation*@chan: channel to operate on*@base_filename: base name of files to create*@parent: dentry of parent directory, %NULL for root directory* Returns 0 if successful, non-zero otherwise