Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fs_context.c Create Date:2022-07-28 20:13:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Duplicate a legacy config.

Proto:static int legacy_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc)

Type:int

Parameter:

TypeParameterName
struct fs_context *fc
struct fs_context *src_fc
534  src_ctx = fs_private
536  ctx = 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
537  If Not ctx Then Return -ENOMEM
540  If param_type == LEGACY_FS_INDIVIDUAL_PARAMS Then
541  Data page for legacy filesystems = 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
544  kfree(ctx)
545  Return -ENOMEM
549  fs_private = ctx
550  Return 0