Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:write() implementation for reset file. Reset all profiling data to zero* and remove nodes for which all associated object files are unloaded.

Proto:static ssize_t reset_write(struct file *file, const char __user *addr, size_t len, loff_t *pos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
const char __user *addr
size_tlen
loff_t *pos
530  mutex_lock( & node_lock)
531  restart :
533  If num_loaded > 0 Then Reset all profiling data associated with the specified node.
535  Else if list_empty - tests whether a list is empty*@head: the list to test. Then
536  remove_node(node)
538  Go to restart
541  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.
543  Return len