qla4xxx_find...e_chap_index(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ qla4xxx_find_free_chap_index(9) β€” Kernel API Manual ✨

okay bestie, welcome to the Kernel API Manual, section 9, and today's main character is qla4xxx_find_free_chap_index. it's a little SCSI driver function and honestly it's giving "quietly doing its job" energy πŸŽ€


πŸ’– NAME πŸ’–

qla4xxx_find_free_chap_index β€” literally just find the first free chap index πŸ¦‹


🌸 SYNOPSIS 🌸

int qla4xxx_find_free_chap_index (struct scsi_qla_host *ha , uint16_t
*chap_index );

that's the whole vibe. takes two things, gives you back an int. slay ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • ha β€” pointer to adapter structure. that's your adapter, bestie, the whole host situation 🫢
  • chap_index β€” CHAP index to be returned. it comes back out through here, so like... it's the output, not the input. iykyk πŸ’…

πŸ‘‘ DESCRIPTION πŸ‘‘

Find the first free chap index available in the chap table ⭐

that's it, that's the function. it goes looking through the chap table and grabs you the first free slot. no cap, that's the entire job πŸ”₯


πŸ’€ NOTE πŸ’€

Caller should acquire the chap lock before getting here. πŸ”’

fr fr, do not skip this. the lock is your responsibility, not this function's. it will not hold your hand. lock first, then call. periodt πŸ’…


🌈 SEE ALSO 🌈

Kernel file ./drivers/scsi/qla4xxx/ql4_os.c β€” and here's the whole friend group, all of them in (9):


and that's the page!! mwah πŸ’‹ this came from the ./drivers/scsi/qla4xxx source directory, dated October 2026, and it's page qla4xxx_find...e_chap_index(9) uwu. go forth and lock your chap table before calling, bestie πŸ§šπŸ’œ

πŸ“¦ where this page comes from