函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kcov.c Create Date:2022-07-27 12:37:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kcov_open

函数原型:static int kcov_open(struct inode *inode, struct file *filep)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *filep
482  kcov等于分配内存并置零
483  如果非kcov则返回:负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  spin_lock_init( & The lock protects mode, size, area and t. )
489  needed for tty driver, and maybe others 等于kcov
490  返回:nonseekable_open(inode, filep)