NCR5380_init(9)
β¨ NCR5380_init β a manual page, but make it a group chat β¨
okay so real talk, bestie: this is from the Kernel API Manual, and it's about NCR5380_init(9) β the lil function that wakes up an NCR5380 and gets it ready to slay π
πΈ SYNOPSIS πΈ
int NCR5380_init (struct Scsi_Host *instance , int flags );
like, that's the whole vibe. two args, one int coming back at you β¨
π ARGUMENTS π
instanceβ the adapter you're configuring π«Ά this is the thing getting the glow-up.flagsβ the control flags. yes queen, we're doing bit stuff.
π¦ DESCRIPTION π¦
So what does it actually do? It initializes *instance and the corresponding 5380 chip, with flags OR'd into the initial flags value. That's it, that's the whole job. No cap, it's giving "small function, big responsibility" π
π NOTES π
ngl the original author is very up-front about their assumptions here, and honestly? respect.
- They assume that the host, hostno, and id bits have already been set correctly π so like, do that first, bestie.
- They don't care about the irq and other fields. literally could not be less bothered. iconic.
- Returns
0for success β
lowkey important: those assumptions aren't suggestions, they're the contract. ifhost,hostnooridaren't set right before you call this, that's a you problem, not a this-function problem π
π SEE ALSO π
the whole friend group shows up for this one, fr fr. Kernel file is at ./drivers/scsi/NCR5380.c, and the squad is:
initialize_SCp(9)NCR5380_poll_politely2(9)NCR5380_print(9)NCR5380_print_phase(9)NCR5380_info(9)NCR5380_maybe_reset_bus(9)NCR5380_exit(9)complete_cmd(9)NCR5380_queue_command(9)dequeue_next_cmd(9)NCR5380_main(9)NCR5380_intr(9)NCR5380_select(9)NCR5380_transfer_pio(9)do_reset(9)do_abort(9)list_find_cmd(9)NCR5380_abort(9)NCR5380_host_reset(9)
go read them, iykyk π§ββοΈ
and that's the page, bestie π this one lives in ./drivers/scsi and it's stamped October 2026 β so like, from the future?? anyway, mwah, go init that chip ππ₯
π¦ 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