Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, const void *from, size_t available)

Type:ssize_t

Parameter:

TypeParameterName
void __user *to
size_tcount
loff_t *ppos
const void *from
size_tavailable
648  pos = ppos
651  If pos < 0 Then Return -EINVAL
653  If pos >= available || Not count Then Return 0
655  If count > available - pos Then count = available - pos
657  ret = copy_to_user(to, from + pos, count)
658  If ret == count Then Return -EFAULT
660  count -= ret
661  ppos = pos + count
662  Return count
Caller
NameDescribe
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