Lines Matching refs:proc_dointvec

13  * Test that proc_dointvec will not try to use a NULL .data field even when the
21 * Here we are testing that proc_dointvec behaves correctly when
28 .proc_handler = proc_dointvec,
33 * proc_dointvec expects a buffer in user space, so we allocate one. We
42 * We don't care what the starting length is since proc_dointvec should
46 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&null_data_table,
55 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&null_data_table,
63 * field that proc_dointvec cannot do anything with; however, this time it is
64 * because we tell proc_dointvec that the size is 0.
73 * So .data is no longer NULL, but we tell proc_dointvec its
78 .proc_handler = proc_dointvec,
88 * As before, we don't care what buffer length is because proc_dointvec
92 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&data_maxlen_unset_table,
101 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&data_maxlen_unset_table,
121 .proc_handler = proc_dointvec,
133 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ, buffer,
137 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_WRITE, buffer,
143 * Test that proc_dointvec refuses to read when the file position is non-zero.
155 .proc_handler = proc_dointvec,
167 * proc_dointvec should refuse to read into the buffer since the file
172 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ, buffer,
190 .proc_handler = proc_dointvec,
201 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ,
221 .proc_handler = proc_dointvec,
231 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ,
250 .proc_handler = proc_dointvec,
262 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_WRITE,
280 .proc_handler = proc_dointvec,
292 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_WRITE,
312 .proc_handler = proc_dointvec,
332 KUNIT_EXPECT_EQ(test, -EINVAL, proc_dointvec(&table, KUNIT_PROC_WRITE,
350 .proc_handler = proc_dointvec,
364 KUNIT_EXPECT_EQ(test, -EINVAL, proc_dointvec(&table, KUNIT_PROC_WRITE,