Function report |
Source Code:mm\memfd.c |
Create Date:2022-07-28 16:37:59 |
Last Modify:2022-05-20 10:27:46 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:memfd_add_seals
Proto:static int memfd_add_seals(struct file *file, unsigned int seals)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
unsigned int | seals |
141 | inode = file_inode(file) |
176 | If Not (f_mode & le is open for writing ) Then Return -EPERM |
178 | If seals & ~F_ALL_SEALS Then Return -EINVAL |
181 | inode_lock(inode) |
183 | file_seals = memfd_file_seals_ptr(file) |
184 | If Not file_seals Then |
189 | If file_seals & prevent further seals from being set Then |
194 | If seals & prevent writes && Not (file_seals & prevent writes ) Then |
195 | error = mapping_deny_writable(f_mapping) |
200 | If error Then |
202 | Go to unlock |
206 | file_seals |= seals |
207 | error = 0 |
209 | unlock : |
210 | inode_unlock(inode) |
211 | Return error |
Name | Describe |
---|---|
memfd_fcntl |
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 |