Function report |
Source Code:fs\super.c |
Create Date:2022-07-28 20:02:29 |
Last Modify:2022-05-24 06:42:17 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mount_bdev
Proto:struct dentry *mount_bdev(struct file_system_type *fs_type, int flags, const char *dev_name, void *data, int (*fill_super)(struct super_block *, void *, int ))
Type:struct dentry
Parameter:
Type | Parameter | Name |
---|---|---|
struct file_system_type * | fs_type | |
int | flags | |
const char * | dev_name | |
void * | data | |
int (* | fill_super |
1370 | error = 0 |
1372 | If Not (flags & Mount read-only ) Then mode |= le is open for writing |
1375 | bdev = blkdev_get_by_path(dev_name, mode, fs_type) |
1384 | mutex_lock( & Mutex for freeze ) |
1385 | If The counter of freeze processes > 0 Then |
1388 | Go to error_bdev |
1390 | s = find or create a superblock |
1396 | If s_root Then |
1397 | If (flags ^ s_flags) & Mount read-only Then |
1400 | Go to error_bdev |
1410 | lease a write lock |
1411 | blkdev_put(bdev, mode) |
1412 | lock for writing |
1413 | Else |
1427 | Return get a reference to a dentry |
1429 | error_s : |
1431 | error_bdev : |
1432 | blkdev_put(bdev, mode) |
1433 | error : |
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 |