函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fs_context.c Create Date:2022-07-29 10:44:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:vfs_dup_fc_config: Duplicate a filesystem context.*@src_fc: The context to copy.

函数原型:struct fs_context *vfs_dup_fs_context(struct fs_context *src_fc)

返回类型:struct fs_context

参数:

类型参数名称
struct fs_context *src_fc
347  如果非dup则返回:错误号
350  fc等于kmemdup - duplicate region of memory*@src: memory region to duplicate*@len: memory region length*@gfp: GFP mask to use* Return: newly allocated copy of @src or %NULL in case of error
351  如果非fc则返回:错误号
354  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)
356  fs_private = NULL
357  s_fs_info = NULL
358  source = NULL
359  security = NULL
360  WARNING: This can be used only if we _already_ own a reference
361  get_net(net_ns)
362  get_user_ns(user_ns)
363  get_cred - Get a reference on a set of credentials*@cred: The credentials to reference* Get a reference on the specified set of credentials. The caller must* release the reference. If %NULL is passed, it is returned with no action.
364  如果log_inc - increment a refcount*@r: the refcount to increment* Similar to atomic_inc(), but will saturate at REFCOUNT_SATURATED and WARN
368  ret等于dup(fc, src_fc)
369  如果ret小于0则转到:err_fc
372  ret等于security_fs_context_dup(fc, src_fc)
373  如果ret小于0则转到:err_fc
375  返回:fc
377  err_fc :
378  put_fs_context - Dispose of a superblock configuration context.*@fc: The context to dispose of.
379  返回:错误号