Function report |
Source Code:kernel\sysctl.c |
Create Date:2022-07-28 09:11:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:/proc/sys support
Proto:static int _proc_do_string(char *data, int maxlen, int write, char __user *buffer, size_t *lenp, loff_t *ppos)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
char * | data | |
int | maxlen | |
int | write | |
char __user * | buffer | |
size_t * | lenp | |
loff_t * | ppos |
2009 | lenp = 0 |
2010 | Return 0 |
2013 | If write Then |
2014 | If sysctl_writes_strict == SYSCTL_WRITES_STRICT Then |
2023 | Else |
2025 | len = 0 |
2031 | If Get a simple variable from user space(c, p++) Then Return -EFAULT |
2038 | Else |
2044 | lenp = 0 |
2045 | Return 0 |
2053 | If len Then If copy_to_user(buffer, data, len) Then |
2055 | Return -EFAULT |
2057 | If Write a simple value into user space('\n', buffer + len) Then Return -EFAULT |
2059 | len++ |
2064 | Return 0 |
Name | Describe |
---|---|
proc_dostring | read a string sysctl |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |