Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-28 06:12:27
Last Modify:2022-05-21 09:47:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@

Proto:int snprintf(char *buf, size_t size, const char *fmt, ...)

Type:int

Parameter:

TypeParameterName
char *buf
size_tsize
const char *fmt
2706  va_start(args, fmt)
2707  i = vsnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@args: Arguments for the format string* This function generally
2708  va_end(args)
2710  Return i
Caller
NameDescribe
uevent_net_broadcast
string_get_sizestring_get_size - get the size in the specified units*@size: The size to be converted in blocks*@blk_size: Size of the block (use 1 for size in bytes)*@units: units to use (powers of 1000 or 1024)*@buf: buffer to format to*@len: length of buffer* This
hex_dump_to_bufferhex_dump_to_buffer - convert a blob of data to "hex ASCII" in memory*@buf: data blob to dump*@len: number of bytes in the @buf*@rowsize: number of bytes to print per line; must be 16 or 32*@groupsize: number of bytes to print at a time (1, 2, 4, 8;
config_test_show_strAs per sysfs_kf_seq_show() the buf is max PAGE_SIZE.
test_dev_config_show_bool
test_dev_config_show_int
test_dev_config_show_u8
plain_hash_to_buffer
flags
__check_eq_pbl
config_show
config_test_show_strAs per sysfs_kf_seq_show() the buf is max PAGE_SIZE.
test_dev_config_show_int
test_dev_config_show_uint
dynamic_emit_prefix
sprint_oidsprint_OID - Print an Object Identifier into a buffer*@data: The encoded OID to print*@datasize: The size of the encoded OID*@buffer: The buffer to render into*@bufsize: The size of the buffer* The OID is rendered into the buffer in "a
mce_init_banks
get_name
get_builtin_microcode
request_microcode_amdAMD microcode firmware naming convention, up to family 15h they are in* the legacy file:* amd-ucode/microcode_amd.bin* This legacy file is always smaller than 2K in size.* Beginning with family 15h, they are in family-specific firmware files:
acpi_processor_ffh_cstate_probe_cpu
io_apic_print_entries
ioapic_setup_resources
create_workerreate_worker - create a new workqueue worker*@pool: pool the new worker will belong to* Create and start a new worker which is attached to @pool.* CONTEXT:* Might sleep. Does GFP_KERNEL allocations.* Return:* Pointer to the newly created worker.
autogroup_path
lockevent_readThe lockevent_read() function can be overridden.
register_handler_proc
enabled_show
transition_show
klp_check_stackDetermine whether it's safe to transition the task to the target patch state* by looking for any to-be-patched or to-be-unpatched functions on its stack.
klp_try_switch_taskTry to safely switch a task to the target patch state. If it's currently* running, or it's sleeping on a to-be-patched or to-be-unpatched function, or* if the stack is unreliable, return false.
stack_trace_snprintstack_trace_snprint - Print the entries in the stack trace into a buffer*@buf: Pointer to the print buffer*@size: Size of the print buffer*@entries: Pointer to storage array*@nr_entries: Number of entries in the storage array*@spaces: Number of leading
cgroup_file_name
cgroup_subsys_states_read
create_pid_cachepreates the kmem cache to allocate pids from.*@level: pid namespace level
audit_log_execve_info
kdb_localkdb_local - The main code for kdb
relay_create_buf_file
tracing_cpumask_read
tracing_nsecs_read
tracing_log_errracing_log_err - write an error to the tracing error log*@tr: The associated trace array for the error (NULL for top level array)*@loc: A string describing where the error occurred*@cmd: The tracing command that caused the error*@errs: The array of
tracing_init_tracefs_percpu
preemptirq_start_test
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
trace_print_graph_duration
init_graph_trace
annotate_branch_stat_show
eval_replace
__set_enter_print_fmt
last_cmd_set
print_synth_event
__set_synth_event_print_fmt
trace_kprobe_match_command_head
trace_kprobe_create
traceprobe_parse_probe_arg_bodyString length checking wrapper
__set_print_fmt
trace_probe_match_command_args
trace_uprobe_match_command_head
trace_uprobe_create
tnum_strn
__func_get_name
__func_imm_name
nr_addr_filters_showLet userspace know that this PMU supports address range filtering:
type_show
perf_event_mux_interval_ms_show
show_cpumask
torture_kthread_stoppingEach kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
sysctl_test_api_dointvec_write_single_less_int_minTest that writing a value smaller than the minimum possible value is not* allowed.
sysctl_test_api_dointvec_write_single_greater_int_maxTest that writing the maximum possible value works.
md_setup_drive
min_ratio_show
max_ratio_show
stable_pages_required_show
zswap_pool_create
hugetlb_add_hstate
mpol_to_strmpol_to_str - format a mempolicy structure for printing*@buffer: to contain formatted mempolicy string*@maxlen: length of @buffer*@pol: pointer to mempolicy to be formatted* Convert @pol into a string
print_shadow_for_address
mem_fmt
__hugetlb_cgroup_file_init
print_page_owner
elv_register
blk_mq_hw_sysfs_cpus_show
bdevt_str
disk_namedisk_name() is used by partition check code and the genhd driver.* It formats the devicename of the indicated disk into* the supplied buffer (of size at least 32), and returns* a pointer to that same buffer (for convenience).
badblocks_showadblocks_show() - sysfs access to bad-blocks list*@bb: the badblocks structure that holds all badblock information*@page: buffer received from sysfs*@unack: weather to show unacknowledged badblocks* Return:* Length of returned data
check_partition
amiga_partition
aix_partition
add_part
set_info
find_vol1_partitions
find_lnx1_partitions
find_cms1_partitions
sysv68_partition
tg_prfill_limit
blk_mq_debugfs_register_ctx
blk_mq_debugfs_register_hctx
look_up_user_keyringsLook up the user and user session keyrings for the current process's UID,* creating them if they don't exist.
get_user_session_keyring_rcuGet the user session keyring if it exists, but don't create it if it* doesn't.
sel_make_boolsdeclaration for sel_write_load
sel_read_class
sel_read_perm
tomoyo_print_bprmmoyo_print_bprm - Print "struct linux_binprm" for auditing
tomoyo_print_headermoyo_print_header - Get header line of audit log.*@r: Pointer to "struct tomoyo_request_info".* Returns string representation.* This function uses kmalloc(), so caller must kfree() if this function* didn't return NULL.
tomoyo_init_logmoyo_init_log - Allocate buffer for audit logs
tomoyo_add_entrymoyo_add_entry - Add an ACL to current thread's domain. Used by learning mode.*@domain: Pointer to "struct tomoyo_domain_info".*@header: Lines containing ACL.* Returns nothing.
tomoyo_read_querymoyo_read_query - Read access requests which violated policy in enforcing mode.*@head: Pointer to "struct tomoyo_io_buffer".
tomoyo_find_next_domainmoyo_find_next_domain - Find a domain.*@bprm: Pointer to "struct linux_binprm".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_print_ipv4moyo_print_ipv4 - Print an IPv4 address.*@buffer: Buffer to write to.*@buffer_len: Size of @buffer.*@min_ip: Pointer to __be32.*@max_ip: Pointer to __be32.* Returns nothing.
tomoyo_print_ipv6moyo_print_ipv6 - Print an IPv6 address.*@buffer: Buffer to write to.*@buffer_len: Size of @buffer.*@min_ip: Pointer to "struct in6_addr".*@max_ip: Pointer to "struct in6_addr".* Returns nothing.
tomoyo_audit_inet_logmoyo_audit_inet_log - Audit INET network log.*@r: Pointer to "struct tomoyo_request_info".* Returns 0 on success, negative value otherwise.
tomoyo_get_local_pathmoyo_get_local_path - Get the path of a dentry.*@dentry: Pointer to "struct dentry".*@buffer: Pointer to buffer to return value in.*@buflen: Sizeof @buffer.* Returns the buffer on success, an error code otherwise.
tomoyo_print_ulongmoyo_print_ulong - Print an "unsigned long" value.*@buffer: Pointer to buffer.*@buffer_len: Size of @buffer.*@value: An "unsigned long" value.*@type: Type of @value.* Returns nothing.
gen_symlink_name
__aafs_profile_mkdirRequires: @profile->ns->lock held
policy_readlink
aa_profile_snxprintaa_profile_snxprint - print a profile name to a buffer*@str: buffer to write to
aa_label_snxprintaa_label_snxprint - print a label name to a string buffer*@str: buffer to write to
ima_add_template_entryAdd template entry to the measurement list and hash table, and* extend the pcr.* On systems which support carrying the IMA measurement list across* kexec, maintain the total memory size required for serializing the* binary_runtime_measurements.
ima_eventdigest_init_common
mount_bdev
ns_get_name