Function report | 
Source Code:kernel\sys.c | 
Create Date:2022-07-28 09:21:01 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:prctl_set_mm_exe_file
Proto:static int prctl_set_mm_exe_file(struct mm_struct *mm, unsigned int fd)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct mm_struct * | mm | |
| unsigned int | fd | 
| 1825 | inode = file_inode(file) | 
| 1833 | If Not S_ISREG(i_mode) || path_noexec( & f_path) Then Go to exit | 
| 1836 | err = inode_permission(inode, MAY_EXEC) | 
| 1843 | exe_file = get_mm_exe_file - acquire a reference to the mm's executable file* Returns %NULL if mm has no associated executable file.* User must release file via fput(). | 
| 1845 | If exe_file Then | 
| 1848 | lock for reading | 
| 1850 | If Not File we map to (can be NULL). Then Continue | 
| 1852 | If path_equal( & f_path, & f_path) Then Go to exit_err | 
| 1857 | lease a read lock | 
| 1861 | err = 0 | 
| 1864 | 
 old_exe = xchg( &  store ref to file /proc/ | 
| 1867 | exit : | 
| 1869 | Return err | 
| 1870 | exit_err : | 
| 1871 | lease a read lock | 
| 1873 | Go to exit | 
| Name | Describe | 
|---|---|
| prctl_set_mm | 
| 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  |