Function report |
Source Code:fs\userfaultfd.c |
Create Date:2022-07-28 20:20:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:userfaultfd_event_wait_completion
Proto:static void userfaultfd_event_wait_completion(struct userfaultfd_ctx *ctx, struct userfaultfd_wait_queue *ewq)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct userfaultfd_ctx * | ctx | |
| struct userfaultfd_wait_queue * | ewq |
| 589 | If WARN_ON_ONCE(flags & Getting shut down ) Then Go to out |
| 593 | init_waitqueue_entry( & wq, current process) |
| 594 | release_new_ctx = NULL |
| 596 | spin_lock_irq( & lock) |
| 601 | __add_wait_queue( & waitqueue head for events , & wq) |
| 602 | cycle |
| 604 | If event == 0 Then Break |
| 606 | If READ_ONCE(leased ) || fatal_signal_pending(current process) Then |
| 614 | __remove_wait_queue( & waitqueue head for events , & wq) |
| 615 | If event == UFFD_EVENT_FORK Then |
| 621 | release_new_ctx = new |
| 623 | Break |
| 626 | spin_unlock_irq( & lock) |
| 629 | schedule() |
| 631 | spin_lock_irq( & lock) |
| 634 | spin_unlock_irq( & lock) |
| 636 | If release_new_ctx Then |
| 641 | lock for writing |
| 644 | When vma cycle If ctx == release_new_ctx Then |
| 658 | out : |
| Name | Describe |
|---|---|
| dup_fctx | |
| mremap_userfaultfd_complete | |
| userfaultfd_remove | |
| userfaultfd_unmap_complete |
| 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 |