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

Function null_bbdev_probe

dpdk/drivers/baseband/null/bbdev_null.c:297–321  ·  view source on GitHub ↗

Initialise device */

Source from the content-addressed store, hash-verified

295
296/* Initialise device */
297static int
298null_bbdev_probe(struct rte_vdev_device *vdev)
299{
300 struct bbdev_null_params init_params = {
301 rte_socket_id(),
302 RTE_BBDEV_DEFAULT_MAX_NB_QUEUES
303 };
304 const char *name;
305 const char *input_args;
306
307 if (vdev == NULL)
308 return -EINVAL;
309
310 name = rte_vdev_device_name(vdev);
311 if (name == NULL)
312 return -EINVAL;
313
314 input_args = rte_vdev_device_args(vdev);
315 parse_bbdev_null_params(&init_params, input_args);
316
317 rte_bbdev_log_debug("Init %s on NUMA node %d with max queues: %d",
318 name, init_params.socket_id, init_params.queues_num);
319
320 return null_bbdev_create(vdev, &init_params);
321}
322
323/* Uninitialise device */
324static int

Callers

nothing calls this directly

Calls 5

rte_socket_idFunction · 0.85
rte_vdev_device_nameFunction · 0.85
rte_vdev_device_argsFunction · 0.85
parse_bbdev_null_paramsFunction · 0.85
null_bbdev_createFunction · 0.85

Tested by

no test coverage detected