Function report |
Source Code:fs\userfaultfd.c |
Create Date:2022-07-28 20:20:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:serland asks for a certain API version and we return which bits* and ioctl commands are implemented in this kernel for such API* version or -EINVAL if unknown.
Proto:static int userfaultfd_api(struct userfaultfd_ctx *ctx, unsigned long arg)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct userfaultfd_ctx * | ctx | |
unsigned long | arg |
1832 | If state machine != UFFD_STATE_WAIT_API Then Go to out |
1835 | If copy_from_user( & uffdio_api, buf, size of uffdio_api ) Then Go to out |
1842 | If features & UFFD_FEATURE_EVENT_FORK && Not Check operation authority Then Go to err_out |
1845 | features = UFFD_API_FEATURES |
1846 | ioctls = UFFD_API_IOCTLS |
1848 | If copy_to_user(buf, & uffdio_api, size of uffdio_api ) Then Go to out |
1850 | state machine = UFFD_STATE_RUNNING |
1853 | ret = 0 |
1854 | out : |
1855 | Return ret |
1856 | err_out : |
1857 | memset( & uffdio_api, 0, size of uffdio_api ) |
1858 | If copy_to_user(buf, & uffdio_api, size of uffdio_api ) Then ret = -EFAULT |
1860 | Go to out |
Name | Describe |
---|---|
userfaultfd_ioctl |
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 |