函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\exec.c Create Date:2022-07-29 10:33:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_user_arg_ptr

函数原型:static const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr)

返回类型:char

参数:

类型参数名称
struct user_arg_ptrargv
intnr
402  __usernative
405  如果此条件成立可能性小(为编译器优化)(is_compat)则
408  如果Careful: we have to cast the result to the type of the pointer* for sign reasons(compat, compat + nr)则返回:错误号
411  返回: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  如果Careful: we have to cast the result to the type of the pointer* for sign reasons(native, native + nr)则返回:错误号
418  返回:native
调用者
名称描述
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.