Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kstrtox.c Create Date:2022-07-28 06:26:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kstrtoint - convert a string to an int*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign or a minus sign.

Proto:int kstrtoint(const char *s, unsigned int base, int *res)

Type:int

Parameter:

TypeParameterName
const char *s
unsigned intbase
int *res
253  rv = kstrtoll - convert a string to a long long*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign or a minus sign.
254  If rv < 0 Then Return rv
256  If tmp != tmp Then Return -ERANGE
258  res = tmp
259  Return 0
Caller
NameDescribe
kstrtoint_from_user
rdtgroup_tasks_write
pseudo_lock_measure_trigger
rcu_expedited_store
rcu_normal_store
reboot_setup
setup_relax_domain_level
cgroup_procs_write_start
cgroup_max_descendants_write
cgroup_max_depth_write
cgroup_freeze_write
perf_event_mux_interval_ms_store
create_entryThis registers a new binary format, it recognises the syntax* ':name:type:offset:magic:mask:interpreter:flags'* where the ':' is the IFS, that can be chosen with the first char