Function report |
Source Code:fs\binfmt_flat.c |
Create Date:2022-07-28 20:29:23 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:reate_flat_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", recording the new stack pointer value.
Proto:static int create_flat_tables(struct linux_binprm *bprm, unsigned long arg_start)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct linux_binprm * | bprm | |
| unsigned long | arg_start |
| 130 | sp = start_stack |
| 134 | If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_BINFMT_FLAT_ARGVP_ENVP_ON_STACK) Then sp -= 2 |
| 136 | sp -= 1 |
| 138 | start_stack = sp & -User data (stack) also needs to be aligned.* Here we can be a bit looser than the data sections since this* needs to only meet arch ABI requirements. |
| 139 | sp = start_stack |
| 152 | Write a simple value into user space, with less checking((unsignedlong)p, sp++) |
| 163 | Write a simple value into user space, with less checking((unsignedlong)p, sp++) |
| 172 | Return 0 |
| Name | Describe |
|---|---|
| load_flat_binary | These are the functions used to load flat style executables and shared* libraries. There is no binary dependent code anywhere else. |
| 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 |