函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:simple_read_from_buffer - copy data from the buffer to user space*@to: the user space buffer to read to*@count: the maximum number of bytes to read*@ppos: the current position in the buffer*@from: the buffer to read from*@available: the size of the

函数原型:ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, const void *from, size_t available)

返回类型:ssize_t

参数:

类型参数名称
void __user *to
size_tcount
loff_t *ppos
const void *from
size_tavailable
648  pos等于ppos
651  如果pos小于0则返回:负EINVAL
653  如果pos大于等于available或非count则返回:0
655  如果count大于availableposcount等于availablepos
657  ret等于copy_to_user(to, from + pos, count)
658  如果ret恒等于count则返回:负EFAULT
660  count减等于ret
661  ppos等于poscount
662  返回:count
调用者
名称描述
pm_qos_power_read
snapshot_read
filter_readDMA-API debugging init code* The init code does two things:* 1. Initialize core data structures* 2. Preallocate a given number of dma_debug_entry structs
tracing_cpumask_read
tracing_readme_read
tracing_saved_cmdlines_size_read
tracing_set_trace_read
tracing_nsecs_read
tracing_entries_read
tracing_total_entries_read
tracing_stats_read
trace_options_read
trace_options_core_read
rb_simple_read
buffer_percent_read
hwlat_readhwlat_read - Wrapper read function for reading both window and width*@filp: The active open file structure*@ubuf: The userspace provided buffer to read value into*@cnt: The maximum number of bytes to read*@ppos: The current "file" position* This function
stack_max_size_read
graph_depth_read
event_enable_read
system_enable_read
event_id_read
event_filter_read
subsystem_filter_read
show_header
sel_read_enforce
sel_read_handle_unknown
sel_read_handle_status
sel_read_policyvers
sel_read_mls
sel_read_policy
sel_read_checkreqprot
sel_read_bool
sel_read_avc_cache_threshold
sel_read_avc_hash_stats
sel_read_initcon
sel_read_class
sel_read_perm
sel_read_policycap
smk_read_doismk_read_doi - read() for /smack/doi*@filp: file pointer, not actually used*@buf: where to put the result*@count: maximum to send along*@ppos: where to start* Returns number of bytes read or error code, as appropriate
smk_read_directsmk_read_direct - read() for /smack/direct*@filp: file pointer, not actually used*@buf: where to put the result*@count: maximum to send along*@ppos: where to start* Returns number of bytes read or error code, as appropriate
smk_read_mappedsmk_read_mapped - read() for /smack/mapped*@filp: file pointer, not actually used*@buf: where to put the result*@count: maximum to send along*@ppos: where to start* Returns number of bytes read or error code, as appropriate
smk_read_ambientsmk_read_ambient - read() for /smack/ambient*@filp: file pointer, not actually used*@buf: where to put the result*@cn: maximum to send along*@ppos: where to start* Returns number of bytes read or error code, as appropriate
smk_read_loggingsmk_read_logging - read() for /smack/logging*@filp: file pointer, not actually used*@buf: where to put the result*@cn: maximum to send along*@ppos: where to start* Returns number of bytes read or error code, as appropriate
smk_read_syslogsmk_read_syslog - read() for smackfs/syslog*@filp: file pointer, not actually used*@buf: where to put the result*@cn: maximum to send along*@ppos: where to start* Returns number of bytes read or error code, as appropriate
smk_read_ptracesmk_read_ptrace - read() for /smack/ptrace*@filp: file pointer, not actually used*@buf: where to put the result*@count: maximum to send along*@ppos: where to start* Returns number of bytes read or error code, as appropriate
ns_revision_read
multi_transaction_read
rawdata_read
safesetid_file_read
lockdown_read
ima_show_htable_value
evm_read_keyvm_read_key - read() for /evm*@filp: file pointer, not actually used*@buf: where to put the result*@count: maximum to send along*@ppos: where to start* Returns number of bytes read or error code, as appropriate
simple_transaction_read
simple_attr_readad from the buffer that is filled with the get function
bm_entry_read/
bm_status_read/status
test_fw_misc_read
lockevent_readThe lockevent_read() function can be overridden.