Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:single_open_size

Proto:int single_open_size(struct file *file, int (*show)(struct seq_file *, void *), void *data, size_t size)

Type:int

Parameter:

TypeParameterName
struct file *file
int (*show
void *data
size_tsize
590  buf = seq_buf_alloc(size)
592  If Not buf Then Return -ENOMEM
594  ret = single_open(file, show, data)
595  If ret Then
596  kvfree() - Free memory.*@addr: Pointer to allocated memory.* kvfree frees memory allocated by any of vmalloc(), kmalloc() or kvmalloc().* It is slightly more efficient to use kfree() or vfree() if you are certain* that you know which one to use.
597  Return ret
599  buf = buf
600  size = size
601  Return 0