fc_lport_init_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fc_lport_init_stats(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so real talk, this one lives in the Kernel API Manual and it's called fc_lport_init_stats(9) β€” yes that's the whole name, we're doing full government name energy today ✨


✨ NAME ✨

fc_lport_init_stats β€” the girl who allocates per-CPU statistics for a local port 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

int fc_lport_init_stats (struct fc_lport *lport );

that's it, that's the whole vibe β€” one function, one argument, returns an int. lowkey iconic πŸ’…


🌸 ARGUMENTS 🌸

  • lport β€” the local port whose statistics are about to get ✨initialized✨. like, this is the port. she's the main character here πŸ‘‘

⭐ RETURN ⭐

  • 0 on success πŸŽ‰ (slay)
  • -ENOMEM on failure 😭 (we ran out of memory, it's giving tragic)
ngl, -ENOMEM is the only failure mode listed here, so if you see anything else, that's not on this page fr fr.

πŸ’œ SEE ALSO πŸ’œ

this list is long bestie, buckle up β€” and it all points at the kernel file ./include/scsi/libfc.h 🧚:

like I said. a whole friend group 🌈 iykyk πŸ’€


and that's the whole page fr fr πŸ“ β€” this one came from ./include/scsi, dated October 2026, and it's fc_lport_init_stats(9) signing off. periodt πŸ’–

πŸ“¦ where this page comes from