函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:config_test_driver_store

函数原型:static ssize_t config_test_driver_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
656  test_dev等于dev_to_test_dev(dev)
657  config等于config
660  mutex_lock( & config_mutex)
662  kfree_const - conditionally free memory*@x: pointer to the memory* Function calls kfree only if @x is not in .rodata section.
663  test_driver = NULL
665  copied等于config_copy_test_driver_name(config, buf, count)
666  mutex_unlock( & config_mutex)
668  返回:copied