Lines Matching refs:ms

98 	struct module_stat ms;  in ATF_TC_BODY()  local
101 ms.version = sizeof(ms); in ATF_TC_BODY()
102 ATF_REQUIRE(modstat(0, &ms) == -1); in ATF_TC_BODY()
111 ms.version = 0; in ATF_TC_BODY()
112 ATF_REQUIRE(modstat(modid, &ms) == -1); in ATF_TC_BODY()
115 ms.version = sizeof(ms); in ATF_TC_BODY()
116 ATF_REQUIRE(modstat(modid, &ms) == 0); in ATF_TC_BODY()
117 ATF_REQUIRE(ms.id == modid); in ATF_TC_BODY()
118 if (strnlen(ms.name, sizeof(ms.name)) < sizeof(ms.name)) in ATF_TC_BODY()
119 ATF_REQUIRE(modfind(ms.name) == modid); in ATF_TC_BODY()
130 } ms; in ATF_TC_BODY() local
133 ms.version = sizeof(ms); in ATF_TC_BODY()
134 ATF_REQUIRE(modstat(0, (struct module_stat *)&ms) == -1); in ATF_TC_BODY()
143 ms.version = 0; in ATF_TC_BODY()
144 ATF_REQUIRE(modstat(modid, (struct module_stat *)&ms) == -1); in ATF_TC_BODY()
147 ms.version = sizeof(ms); in ATF_TC_BODY()
148 ATF_REQUIRE(modstat(modid, (struct module_stat *)&ms) == 0); in ATF_TC_BODY()
149 ATF_REQUIRE(ms.id == modid); in ATF_TC_BODY()
150 if (strnlen(ms.name, sizeof(ms.name)) < sizeof(ms.name)) in ATF_TC_BODY()
151 ATF_REQUIRE(modfind(ms.name) == modid); in ATF_TC_BODY()
163 } ms; in ATF_TC_BODY() local
166 ms.version = sizeof(ms); in ATF_TC_BODY()
167 ATF_REQUIRE(modstat(0, (struct module_stat *)&ms) == -1); in ATF_TC_BODY()
176 ms.version = 0; in ATF_TC_BODY()
177 ATF_REQUIRE(modstat(modid, (struct module_stat *)&ms) == -1); in ATF_TC_BODY()
180 ms.version = sizeof(ms); in ATF_TC_BODY()
181 ATF_REQUIRE(modstat(modid, (struct module_stat *)&ms) == 0); in ATF_TC_BODY()
182 ATF_REQUIRE(ms.id == modid); in ATF_TC_BODY()
183 if (strnlen(ms.name, sizeof(ms.name)) < sizeof(ms.name)) in ATF_TC_BODY()
184 ATF_REQUIRE(modfind(ms.name) == modid); in ATF_TC_BODY()