ntb_default_..._port_number(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie πŸ’– this is the ntb_default_..._port_number(9) page from the Kernel API Manual, and it’s literally all about one tiny function: ntb_default_peer_port_number. iykyk. ✨

πŸ“› NAME πŸ“›

ntb_default_peer_port_number β€” get the default peer port by given index πŸŽ€


✨ SYNOPSIS ✨

int ntb_default_peer_port_number (struct ntb_dev *ntb , int pidx );

πŸŽ€ ARGUMENTS πŸŽ€

  • ntb β€” NTB device context. like, the device vibe you’re working with 🫢
  • pidx β€” Peer port index (should not differ from zero). zero vibes only, bestie 😌

πŸ’… DESCRIPTION πŸ’…

By default, the hardware driver supports just one peer device, so this method shall return the corresponding value from enum ntb_default_port. slay, one peer, one little default situation πŸ’«

⚠️ NOTE β€” Don’t call this method directly. The ntb_peer_port_number function should be used instead. like, seriously, use the wrapper, bestie 😭

πŸ”₯ RETURN πŸ”₯

the peer device port or negative value indicating an error 😭 yes, negative means error, no cap.


πŸ¦‹ SEE ALSO πŸ¦‹

okay these are the linked besties, all of them, no skipping πŸ‘‘:


mwah πŸ’‹ that’s the whole page. source/version: ./include/linux; date: October 2026; title: ntb_default_..._port_number(9). byeeee 🫢✨

πŸ“¦ where this page comes from