MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bbdev_parse_mask

Function bbdev_parse_mask

dpdk/examples/bbdev_app/main.c:183–195  ·  view source on GitHub ↗

parse core mask */

Source from the content-addressed store, hash-verified

181
182/* parse core mask */
183static inline
184uint16_t bbdev_parse_mask(const char *mask)
185{
186 char *end = NULL;
187 unsigned long pm;
188
189 /* parse hexadecimal string */
190 pm = strtoul(mask, &end, 16);
191 if ((mask[0] == '\0') || (end == NULL) || (*end != '\0'))
192 return 0;
193
194 return pm;
195}
196
197/* parse core mask */
198static inline

Callers 1

bbdev_parse_argsFunction · 0.85

Calls 1

strtoulFunction · 0.85

Tested by

no test coverage detected