Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_user_arg_ptr

Proto:static const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr)

Type:char

Parameter:

TypeParameterName
struct user_arg_ptrargv
intnr
402  __user * native
405  If Value for the false possibility is greater at compile time(is_compat) Then
408  If Get a simple variable from user space(compat, compat + nr) Then Return ERR_PTR( - EFAULT)
411  Return A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already.
415  If Get a simple variable from user space(native, native + nr) Then Return ERR_PTR( - EFAULT)
418  Return native
Caller
NameDescribe
count() counts the number of strings in array ARGV.
copy_strings'copy_strings()' copies argument/environment strings from the old* processes's memory to the new process's stack. The call to get_user_pages()* ensures the destination page is created and not swapped out.