函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:event_filter_read

函数原型:static ssize_t event_filter_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos)

返回类型:ssize_t

参数:

类型参数名称
struct file *filp
char __user *ubuf
size_tcnt
loff_t *ppos
1358  r等于负ENODEV
1360  如果ppos则返回:0
1363  s等于开辟内存
1365  如果非s则返回:负ENOMEM
1368  trace_seq_init(s)
1370  mutex_lock( & event_mutex)
1371  file等于event_file_data(filp)
1372  如果filealler must hold event_mutex
1374  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.
1376  如果filer等于simple_read_from_buffer(ubuf, cnt, ppos, buffer, race_seq_used - amount of actual data written to buffer*@s: trace sequence descriptor* Returns the amount of data written to the buffer.* IMPORTANT!* Use this instead of @s->seq.len if you need to pass the amount)
1380  kfree(s)
1382  返回:r