Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\relay.c Create Date:2022-07-28 11:46:56
Last Modify:2020-03-17 19:20:22 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:relay_create_buf_file

Proto:static struct dentry *relay_create_buf_file(struct rchan *chan, struct rchan_buf *buf, unsigned int cpu)

Type:struct dentry

Parameter:

TypeParameterName
struct rchan *chan
struct rchan_buf *buf
unsigned intcpu
422  tmpname = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
423  If Not tmpname Then Return 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  If IS_ERR(dentry) Then dentry = NULL
434  kfree(tmpname)
436  Return dentry
Caller
NameDescribe
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