Function report |
Source Code:mm\util.c |
Create Date:2022-07-28 14:22:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:get_cmdline() - copy the cmdline value to a buffer.*@task: the task whose cmdline value to copy.*@buffer: the buffer to copy to.*@buflen: the length of the buffer. Larger cmdline values are truncated* to this length.
Proto:int get_cmdline(struct task_struct *task, char *buffer, int buflen)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | task | |
| char * | buffer | |
| int | buflen |
| 855 | res = 0 |
| 864 | spin_lock( & protect the below fields ) |
| 869 | spin_unlock( & protect the below fields ) |
| 876 | res = access_process_vm(task, arg_start, buffer, len, get_user_pages read/write w/o permission ) |
| 886 | Else |
| 896 | out_mm : |
| 898 | out : |
| 899 | Return res |
| Name | Describe |
|---|---|
| kstrdup_quotable_cmdline | Returns allocated NULL-terminated string containing process* command line, with inter-argument NULLs replaced with spaces,* and other special characters escaped. |
| 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 |