Function report |
Source Code:kernel\sysctl-test.c |
Create Date:2022-07-28 13:50:59 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static void sysctl_test_api_dointvec_table_maxlen_unset(struct kunit *test)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
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 = read a vector of integers, extra1 = & i_zero, extra2 = & i_one_hundred, } |
94 | len = 1234 |
95 | KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal(test, 0, read a vector of integers) |
103 | len = 1234 |
104 | KUNIT_EXPECT_EQ() - Sets an expectation that @left and @right are equal(test, 0, read a vector of integers) |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |