Function report |
Source Code:include\kunit\test.h |
Create Date:2022-07-28 06:38:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static inline void *kunit_kzalloc(struct kunit *test, size_t size, gfp_t gfp)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct kunit * | test | |
size_t | size | |
gfp_t | gfp |
337 | Return kunit_kmalloc(test, size, gfp | __GFP_ZERO) |
Name | Describe |
---|---|
string_stream_fragment_init | |
string_stream_get_string | |
string_stream_init | |
kunit_try_catch_test_init | |
sysctl_test_api_dointvec_null_tbl_data | Test that proc_dointvec will not try to use a NULL .data field even when the* length is non-zero. |
sysctl_test_api_dointvec_table_maxlen_unset | 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. |
sysctl_test_api_dointvec_table_len_is_zero | Here we provide a valid struct ctl_table, but we try to read and write from* it using a buffer of zero length, so it should still fail in a similar way as* before. |
sysctl_test_api_dointvec_table_read_but_position_set | Test that proc_dointvec refuses to read when the file position is non-zero. |
sysctl_test_dointvec_read_happy_single_positive | Test that we can read a two digit number in a sufficiently size buffer.* Nothing fancy. |
sysctl_test_dointvec_read_happy_single_negative | Same as previous test, just now with negative numbers. |
sysctl_test_dointvec_write_happy_single_positive | Test that a simple positive write works. |
sysctl_test_dointvec_write_happy_single_negative | Same as previous test, but now with negative numbers. |
sysctl_test_api_dointvec_write_single_less_int_min | Test that writing a value smaller than the minimum possible value is not* allowed. |
sysctl_test_api_dointvec_write_single_greater_int_max | Test that writing the maximum possible value works. |
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 |