Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int gcov_seq_open(struct inode *inode, struct file *file)

Type:int

Parameter:

TypeParameterName
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  If Not info Then Go to out_unlock
195  iter = gcov_iter_new(info)
196  If Not iter Then Go to err_free_info
198  rc = seq_open(file, & gcov_seq_ops)
199  If rc Then Go to 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  Return rc
207  err_free_iter_info :
208  gcov_iter_free(iter)
209  err_free_info :
210  gcov_info_free(info)
211  Go to out_unlock