fc_lport_init_stats(9)
π 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 β
0on success π (slay)-ENOMEMon 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 π§:
enum fc_lport_state(9)enum fc_rport_state(9)struct fc_disc_port(9)enum fc_rport_event(9)struct fc_rport_operations(9)struct fc_rport_libfc_priv(9)struct fc_rport_priv(9)struct fc_stats(9)struct fc_seq_els_data(9)struct fc_fcp_pkt(9)struct fc_seq(9)struct fc_exch(9)struct fc_disc(9)struct fc_lport(9)struct fc4_prov(9)fc_lport_test_ready(9)fc_set_wwnn(9)fc_set_wwpn(9)fc_lport_state_enter(9)fc_lport_free_stats(9)lport_priv(9)libfc_host_alloc(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms