ni_get_valid_routes(9)
π NAME π
Hiii bestie! Welcome to ni_get_valid_routes(9) from the Kernel API Manual. This oneβs short and sweet: it implements INSN_DEVICE_CONFIG_GET_ROUTES. Thatβs the whole vibe. β¨
π SYNOPSIS π
unsigned int ni_get_valid_routes (const struct ni_route_tables *tables ,
unsigned int n_pairs , unsigned int *pair_data );
πΈ ARGUMENTS πΈ
tablesβ pointer to the relevant set of routing tables. Thatβs the routing-table home base.n_pairsβ Number of pairs for which memory is allocated by the user. If the user specifies'0', only the number of available pairs is returned. So'0'is the βjust tell me the countβ mode, iykyk.pair_dataβ Pointer to memory allocated to return pairs back to user. Each even, odd indexed member of this array will hold source, destination of a route pair respectively. Even index = source, odd index = destination, and yes that is the arrangement.
π¦ RETURN π¦
Hereβs the return tea, bestie: the number of valid routes if n_pairs == 0; otherwise, the number of valid routes copied. Thatβs it β no extra plot twists. π
π₯ SEE ALSO π₯
- Kernel file
./drivers/comedi/drivers/ni_routes.c ni_assign_device_routes(9),ni_count_valid_routes(9),ni_is_cmd_dest(9),ni_sort_device_routes(9),ni_find_route_set(9),ni_lookup_route_register(9),ni_route_to_register(9)
Source/version check: source/version is ./drivers/comedi/drivers, and the date is October 2026. Mwah π stay iconic, bestie π«Άπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms