Function report |
Source Code:fs\binfmt_misc.c |
Create Date:2022-07-28 20:27:42 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:/register
Proto:static ssize_t bm_register_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos)
Type:ssize_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | file | |
| const char __user * | buffer | |
| size_t | count | |
| loff_t * | ppos |
| 698 | err = 0 |
| 700 | e = This registers a new binary format, it recognises the syntax* ':name:type:offset:magic:mask:interpreter:flags'* where the ':' is the IFS, that can be chosen with the first char |
| 715 | inode = bm_get_inode(sb, S_IFREG | 0644) |
| 721 | err = simple_pin_fs( & bm_fs_type, & bm_mnt, & entry_count) |
| 722 | If err Then |
| 728 | If type, status, etc. & MISC_FMT_OPEN_FILE Then |
| 731 | f = open_exec( filename of interpreter ) |
| 734 | pr_notice("register: failed to install interpreter file %s\n", filename of interpreter ) |
| 735 | simple_release_fs( & bm_mnt, & entry_count) |
| 736 | put an inode |
| 737 | inode = NULL |
| 738 | Go to out2 |
| 740 | interp_file = f |
| 744 | s or device private pointer = e |
| 748 | write_lock( & entries_lock) |
| 750 | write_unlock( & entries_lock) |
| 752 | err = 0 |
| 753 | out2 : |
| 755 | out : |
| 758 | If err Then |
| 762 | Return count |
| 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 |