ntb_port_number(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ntb_port_number πŸ’–

okay bestie, welcome to the Kernel API Manual corner where we talk about ntb_port_number β€” the lil function whose whole job is handing you the local port number. no cap. ✨

🌸 NAME 🌸

ntb_port_number β€” get the local port number. that's the name, that's the mission, and honestly it ate. πŸ’…

πŸ’… SYNOPSIS πŸ’…

int ntb_port_number (struct ntb_dev *ntb );

πŸŽ€ ARGUMENTS πŸŽ€

  • ntb β€” the NTB device context. it's the main character you pass in so the function knows which device we're talking about. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

hardware must support at least a simple two-ports ntb connection β€” that's the requirement, periodt. πŸ’€

🌈 RETURN 🌈

the local port number. yes bestie, it returns the local port number, exactly what it says on the tin. πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/ntb.h is the home base. then we got the whole friend group:


xoxo, bestie πŸ’– this page is from ./include/linux, dated October 2026, and it's literally the ntb_port_number(9) manual page. slay and read the source. πŸŽ€

πŸ“¦ where this page comes from