Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Special case of dostring for the UTS structure. This has locks* to observe. Should this be in kernel/sys.c ????

Proto:static int proc_do_uts_string(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos)

Type:int

Parameter:

TypeParameterName
struct ctl_table *table
intwrite
void __user *buffer
size_t *lenp
loff_t *ppos
39  No 3D Now!( & uts_table, table, size of uts_table )
40  data = tmp_data
48  lock for reading
49  No 3D Now!(tmp_data, get_uts(table), size of tmp_data )
50  lease a read lock
51  r = read a string sysctl
53  If write Then
60  lock for writing
61  No 3D Now!(get_uts(table), tmp_data, size of tmp_data )
62  lease a write lock
63  proc_sys_poll_notify(poll)
66  Return r