Function report |
Source Code:fs\fs_context.c |
Create Date:2022-07-28 20:13:04 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:alloc_fs_context - Create a filesystem context.*@fs_type: The filesystem type.*@reference: The dentry from which this one derives (or NULL)*@sb_flags: Filesystem/superblock flags (SB_*)*@sb_flags_mask: Applicable members of @sb_flags
Proto:static struct fs_context *alloc_fs_context(struct file_system_type *fs_type, struct dentry *reference, unsigned int sb_flags, unsigned int sb_flags_mask, enum fs_context_purpose purpose)
Type:struct fs_context
Parameter:
Type | Parameter | Name |
---|---|---|
struct file_system_type * | fs_type | |
struct dentry * | reference | |
unsigned int | sb_flags | |
unsigned int | sb_flags_mask | |
enum fs_context_purpose | purpose |
261 | fc = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
267 | sb_flags_mask = sb_flags_mask |
272 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & uapi_mutex) |
275 | Case purpose == New superblock for explicit mount |
276 | user_ns = get_user_ns(user_ns) |
277 | Break |
278 | Case purpose == New superblock for automatic submount |
279 | user_ns = get_user_ns(s_user_ns) |
280 | Break |
281 | Case purpose == Superblock reconfiguration (remount) |
290 | If Not init_fs_context Then init_fs_context = legacy_init_fs_context |
293 | ret = init_fs_context(fc) |
296 | need_free = true |
297 | Return fc |
299 | err_fc : |
Name | Describe |
---|---|
fs_context_for_mount | |
fs_context_for_reconfigure | |
fs_context_for_submount |
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 |