函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Similar to the previous test, we create a struct ctrl_table that has a .data* field that proc_dointvec cannot do anything with; however, this time it is* because we tell proc_dointvec that the size is 0.

函数原型:static void sysctl_test_api_dointvec_table_maxlen_unset(struct kunit *test)

返回类型:void

参数:

类型参数名称
struct kunit *test
71  data等于0
72  struct ctl_table data_maxlen_unset_table = { Text ID for /proc/sys, or zero = "foo", data = & data, maxlen = 0, mode = 0644, Callback for text formatting = 读sysctl整数向量, extra1 = & i_zero, extra2 = & i_one_hundred, }
85  __userbuffer等于kunit_kzalloc() - Just like kunit_kmalloc(), but zeroes the allocation.*@test: The test context object.*@size: The size in bytes of the desired memory.*@gfp: flags passed to underlying kmalloc().* See kzalloc() and kunit_kmalloc() for more information.
94  len等于1234
95  KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal(test, 0, 读sysctl整数向量)
98  KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal(test, (size_t)0, len)
103  len等于1234
104  KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal(test, 0, 读sysctl整数向量)
107  KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal(test, (size_t)0, len)