rio_query_mport(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ rio_query_mport(9) πŸ¦‹

okay so this one's from the Kernel API Manual and it's literally the tiniest little function ever β€” but she's important, so let's give her the moment she deserves πŸ’…


✨ NAME ✨

rio_query_mport β€” query mport device attributes πŸŽ€


🌸 SYNOPSIS 🌸

int rio_query_mport (struct rio_mport *port , struct rio_mport_attr
*mport_attr );

🫢 ARGUMENTS 🫢

  • port β€” the mport device you're querying. that's the one, bestie 🎯
  • mport_attr β€” the mport attributes data structure. this is where the tea gets poured β˜•

πŸ’– DESCRIPTION πŸ’–

so what does she do?? she returns the attributes of the specified mport, and she does it through the pointer to the attributes data structure. that's it. that's the whole vibe. you hand her a mport_attr and she fills it in. iconic, no notes 🌟

ngl it's giving "small function, big responsibility" β€” main character energy fr fr πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/rapidio/rio.c β€” and the whole friend group is here, brace yourself 😭

rio_local_get_device_id(9), rio_alloc_net(9), rio_local_set_device_id(9), rio_add_device(9), rio_request_inb_mbox(9), rio_release_inb_mbox(9), rio_request_outb_mbox(9), rio_release_outb_mbox(9), rio_setup_inb_dbell(9), rio_request_inb_dbell(9), rio_release_inb_dbell(9), rio_request_outb_dbell(9), rio_release_outb_dbell(9), rio_add_mport_pw_handler(9), rio_del_mport_pw_handler(9), rio_request_inb_pwrite(9), rio_release_inb_pwrite(9), rio_pw_enable(9), rio_map_inb_region(9), rio_unmap_inb_region(9), rio_map_outb_region(9), rio_unmap_outb_region(9), rio_mport_get_physefb(9), rio_get_comptag(9), rio_set_port_lockout(9), rio_enable_rx_tx_port(9), rio_chk_dev_route(9), rio_mport_chk_dev_access(9), rio_chk_dev_access(9), rio_get_input_status(9), rio_clr_err_stopped(9), rio_inb_pwrite_handler(9), rio_mport_get_efb(9), rio_mport_get_feature(9), rio_std_route_add_entry(9), rio_std_route_get_entry(9), rio_std_route_clr_table(9), rio_lock_device(9), rio_unlock_device(9), rio_route_add_entry(9), rio_route_get_entry(9), rio_route_clr_table(9), rio_request_mport_dma(9), rio_release_dma(9), rio_dma_prep_xfer(9), rio_register_scan(9), rio_mport_scan(9)

like I said. the whole group chat 😭🫢


lowkey a reminder: every single one of these is a real reference, so if you're going link-hunting through the rapidio docs, this is your guest list πŸŽ€

✨ and that's the page, bestie ✨ this lil beauty lives in ./drivers/rapidio and the version vibes are stamped October 2026 β€” go off, rapidio, we love to see it πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from