Function report | 
Source Code:fs\proc_namespace.c | 
Create Date:2022-07-28 20:15:50 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:mounts_open_common
Proto:static int mounts_open_common(struct inode *inode, struct file *file, int (*show)(struct seq_file *, struct vfsmount *))
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct inode * | inode | |
| struct file * | file | |
| int (* | show | 
| 241 | task = get_proc_task(inode) | 
| 243 | struct mnt_namespace * ns = NULL | 
| 253 | nsp = Namespaces: | 
| 260 | get_mnt_ns(ns) | 
| 261 | If Not Filesystem information: Then | 
| 267 | get_fs_root( Filesystem information: , & root) | 
| 268 | task_unlock(task) | 
| 269 | put_task_struct(task) | 
| 271 | ret = seq_open_private(file, & mounts_op, sizeof(structproc_mounts)) | 
| 272 | If ret Then Go to err_put_path | 
| 276 | poll_event = event | 
| 282 | cached_event = ~0ULL | 
| 284 | Return 0 | 
| 286 | err_put_path : | 
| 288 | err_put_ns : | 
| 289 | put_mnt_ns(ns) | 
| 290 | err : | 
| 291 | Return ret | 
| Name | Describe | 
|---|---|
| mounts_open | |
| mountinfo_open | |
| mountstats_open | 
| 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  |