函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static ssize_t reset_write(struct file *file, const char __user *addr, size_t len, loff_t *pos)

返回类型:ssize_t

参数:

类型参数名称
struct file *file
const char __user *addr
size_tlen
loff_t *pos
530  mutex_lock( & node_lock)
531  restart :
533  如果num_loaded大于0则Reset all profiling data associated with the specified node.
535  否则如果链表为空
536  remove_node(node)
538  转到: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  返回:len