Function report |
Source Code:fs\namespace.c |
Create Date:2022-07-28 20:09:09 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__mnt_want_write - get write access to a mount without freeze protection*@m: the mount on which to take a write* This tells the low-level filesystem that a write is about to be performed to* it, and makes sure that writes are allowed (mnt it read-write)
Proto:int __mnt_want_write(struct vfsmount *m)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct vfsmount * | m |
| 313 | mnt = real_mount(m) |
| 314 | ret = 0 |
| 317 | mnt_inc_writers(mnt) |
| 323 | smp_mb() |
| 324 | When READ_ONCE(mnt_flags) & MNT_WRITE_HOLD cycle |
| 325 | cpu_relax() |
| 331 | smp_rmb() |
| 332 | If mnt_is_readonly(m) Then |
| 333 | mnt_dec_writers(mnt) |
| 336 | preempt_enable() |
| 338 | Return ret |
| Name | Describe |
|---|---|
| touch_atime | |
| mnt_want_write | mnt_want_write - get write access to a mount*@m: the mount on which to take a write* This tells the low-level filesystem that a write is about to be performed to* it, and makes sure that writes are allowed (mount is read-write, filesystem |
| __mnt_want_write_file | __mnt_want_write_file - get write access to a file's mount*@file: the file who's mount on which to take a write* This is like __mnt_want_write, but it takes a file and can* do some optimisations if the file is open for write already |
| 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 |