qla4xxx_set_chap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ qla4xxx_set_chap(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a little function from the qla4xxx world and honestly? it's giving "set up your CHAP creds and go" energy. let's get into it πŸŽ€


🌸 NAME 🌸

qla4xxx_set_chap β€” make a chap entry at the given index πŸ’…


✨ SYNOPSIS ✨

int qla4xxx_set_chap (struct scsi_qla_host *ha , char *username , char
*password , uint16_t idx , int bidi );

like, yes, it returns an int, and yes, those are all the args 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ha β€” pointer to the adapter structure, your main character fr
  • username β€” the CHAP username you wanna set πŸ‘‘
  • password β€” the CHAP password you wanna set πŸ” (no peeking)
  • idx β€” the CHAP index at which to make the entry πŸ“
  • bidi β€” the type of chap entry, i.e. chap_in or chap_out πŸ”

πŸ’œ DESCRIPTION πŸ’œ

so what it does: it creates a chap entry at the given index, using all the info you just handed it ✨ lowkey simple, highkey important. that's the whole vibe πŸ’–


⚠️ NOTE ⚠️

bestie pls read this one πŸ™ˆ β€” the caller should acquire the chap lock before getting here. not optional, not a suggestion, it's literally the note. lock first, then call. periodt πŸ’…

🌈 SEE ALSO 🌈

the kernel file lives right here, go peek:

  • Kernel file ./drivers/scsi/qla4xxx/ql4_mbx.c

and the whole friend group 🫢:


and that's the whole page bestie, ily, go forth and CHAP responsibly πŸ’–βœ¨

sign-off szn πŸŽ€ this iconic lil page comes from ./drivers/scsi/qla4xxx, dated October 2026, and it's literally qla4xxx_set_chap(9) β€” no cap πŸ«ΆπŸ’…

πŸ“¦ where this page comes from