函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:config_test_fs_store

函数原型:static ssize_t config_test_fs_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)

返回类型:ssize_t

参数:

类型参数名称
struct device *dev
struct device_attribute *attr
const char *buf
size_tcount
703  test_dev等于dev_to_test_dev(dev)
704  config等于config
707  mutex_lock( & config_mutex)
709  kfree_const - conditionally free memory*@x: pointer to the memory* Function calls kfree only if @x is not in .rodata section.
710  test_fs = NULL
712  copied等于config_copy_test_fs(config, buf, count)
713  mutex_unlock( & config_mutex)
715  返回:copied