函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:reate_aout_tables() parses the env- and arg-strings in new user* memory and creates the pointer tables from them, and puts their* addresses on the "stack", returning the new stack pointer value.

函数原型:static unsigned long __user *create_aout_tables(char __user *p, struct linux_binprm *bprm)

返回类型:unsigned long

参数:

类型参数名称
char __user *p
struct linux_binprm *bprm
61  __user__userargv
62  __user__userenvp
63  __usersp
64  argc等于argc
65  envc等于envc
67  sp__user等于负*的长度按位与p
81  sp减等于envc加1
82  envp等于sp
83  sp减等于argc加1
84  argv等于sp
86  put_user - Write a simple value into user space((unsignedlong)envp, --sp)
87  put_user - Write a simple value into user space((unsignedlong)argv, --sp)
89  put_user - Write a simple value into user space(argc, --sp)
90  arg_start等于p
91 argc自减大于0循环
93  put_user - Write a simple value into user space(p, argv++)
94  循环
96 c循环
98  put_user - Write a simple value into user space(NULL, argv)
99  arg_end等于env_start等于p
100 envc自减大于0循环
102  put_user - Write a simple value into user space(p, envp++)
103  循环
105 c循环
107  put_user - Write a simple value into user space(NULL, envp)
108  env_end等于p
109  返回:sp
调用者
名称描述
load_aout_binaryThese are the functions used to load a.out style executables and shared* libraries. There is no binary dependent code anywhere else.