Function report |
Source Code:fs\namei.c |
Create Date:2022-07-28 20:05:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_mknodat
Proto:long do_mknodat(int dfd, const char __user *filename, umode_t mode, unsigned int dev)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
int | dfd | |
const char __user * | filename | |
umode_t | mode | |
unsigned int | dev |
3690 | lookup_flags = 0 |
3695 | retry : |
3696 | dentry = user_path_create(dfd, filename, & path, lookup_flags) |
3700 | If Not IS_POSIXACL( Where the name belongs to - NULL is * negative ) Then mode &= ~current_umask() |
3706 | Case & == 0 |
3706 | Case & == S_IFREG |
3707 | error = vfs_create( Where the name belongs to - NULL is * negative , dentry, mode, true) |
3708 | If Not error Then ima_post_path_mknod(dentry) |
3710 | Break |
3711 | Case & == S_IFCHR |
3711 | Case & == S_IFBLK |
3712 | error = vfs_mknod( Where the name belongs to - NULL is * negative , dentry, mode, new_decode_dev(dev)) |
3714 | Break |
3715 | Case & == S_IFIFO |
3715 | Case & == S_IFSOCK |
3716 | error = vfs_mknod( Where the name belongs to - NULL is * negative , dentry, mode, 0) |
3717 | Break |
3719 | out : |
3720 | done_path_create( & path, dentry) |
3723 | Go to retry |
3725 | Return error |
Name | Describe |
---|---|
SYSCALL_DEFINE4 | |
SYSCALL_DEFINE3 | |
ksys_mknod |
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 |