函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:write() implementation for gcov data files. Reset profiling data for the* corresponding file. If all associated object files have been unloaded,* remove the debug fs node as well.

函数原型:static ssize_t gcov_seq_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
279  seq等于 needed for tty driver, and maybe others
280  info等于gcov_iter_get_info(private)
281  mutex_lock( & node_lock)
282  node等于Find a node by the associated data file name. Needs to be called with* node_lock held.
283  如果node
285  如果num_loaded恒等于0则remove_node(node)
287  否则Reset all profiling data associated with the specified node.
291  gcov_info control.
292  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.
294  返回:len