Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kcov.c Create Date:2022-07-28 11:33:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kcov_open

Proto:static int kcov_open(struct inode *inode, struct file *filep)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct file *filep
482  kcov = 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).
483  If Not kcov Then Return -ENOMEM
485  mode = KCOV_MODE_DISABLED
486  Sequence is incremented each time kcov is reenabled, used by* kcov_remote_stop(), see the comment there. = 1
487  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
488  Process spin lock initialization( & The lock protects mode, size, area and t. )
489  needed for tty driver, and maybe others = kcov
490  Return nonseekable_open(inode, filep)