函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pen() implementation for gcov data files. Create a copy of the profiling* data set and initialize the iterator and seq_file interface.

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

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *file
180  node等于s or device private pointer
184  rc等于负ENOMEM
186  mutex_lock( & node_lock)
192  info等于Return a newly allocated profiling data set which contains the sum of* all profiling data associated with the given node.
193  如果非info则转到:out_unlock
195  iter等于gcov_iter_new(info)
196  如果非iter则转到:err_free_info
198  rc等于seq_open(file, & gcov_seq_ops)
199  如果rc则转到:err_free_iter_info
201  seq等于 needed for tty driver, and maybe others
202  private等于iter
203  out_unlock :
204  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
205  返回:rc
207  err_free_iter_info :
208  gcov_iter_free(iter)
209  err_free_info :
210  gcov_info_free(info)
211  转到:out_unlock