函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Duplicate a legacy config.

函数原型:static int legacy_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc)

返回类型:int

参数:

类型参数名称
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  如果非ctx则返回:负ENOMEM
540  如果param_type恒等于LEGACY_FS_INDIVIDUAL_PARAMS
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  释放内存
545  返回:负ENOMEM
549  fs_private等于ctx
550  返回:0