ni_get_valid_routes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ”₯

Source/version check: source/version is ./drivers/comedi/drivers, and the date is October 2026. Mwah πŸ’‹ stay iconic, bestie πŸ«ΆπŸ‘‘

πŸ“¦ where this page comes from