| Function report | 
| Source Code: fs\userfaultfd.c | Create Date:2022-07-28 20:20:34 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:userfaultfd_release
Proto:static int userfaultfd_release(struct inode *inode, struct file *file)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct inode * | inode | |
| struct file * | file | 
| 881 | struct userfaultfd_wake_range range = {len = 0, } | 
| 885 | WRITE_ONCE(leased , true) | 
| 887 | If Not mmget_not_zero(mm) Then Go to wakeup | 
| 898 | lock for writing | 
| 900 | prev = NULL | 
| 902 | cond_resched() | 
| 903 | BUG_ON(!!ctx ^ !!(Flags, see mm.h. & (missing pages tracking | wrprotect pages tracking ))) | 
| 910 | If still_valid Then | 
| 921 | Flags, see mm.h. = new_flags | 
| 926 | wakeup : | 
| 932 | spin_lock_irq( & lock) | 
| 933 | __wake_up_locked_key( & waitqueue head for the pending (i.e. not read) userfaults , Convenience macros for the sake of wake_up(): , & range) | 
| 935 | spin_unlock_irq( & lock) | 
| 938 | wake_up_all( & waitqueue head for events ) | 
| 942 | Return 0 | 
| 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 |