dc395x_init_one(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dc395x_init_one(9) β€” the Kernel API Manual glow-up ✨

ok so picture this: we're in the dc395x SCSI driver, and this little function is the meet-cute between the kernel and one single adapter instance. it's giving "first day of school" energy, except the school is the PCI subsystem and the new kid is a SCSI card. she's the main character and this is her intro arc πŸŽ€


✨ NAME ✨

dc395x_init_one β€” literally just: initialise one (1) single instance of the adapter. that's it. that's the whole job. no cap πŸ’…


🌸 SYNOPSIS 🌸

int dc395x_init_one (struct pci_dev *dev , const struct pci_device_id *id );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the PCI device we're supposed to initialize. this is the one, bestie. the actual card. the whole reason we're here 🫢
  • id β€” ok so this one looks like a pointer to the entry in our pci device table that was actually matched by the PCI subsystem. like the match that made this whole thing happen. it's giving "how we met" story 😭

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the vibe: the PCI layer is gonna call this thing once for each instance of the adapter that it finds lurking in the system. so if you've got multiple cards, she gets multiple calls. no shortcuts, no "just do it once and call it a day" β€” one call per instance, periodt πŸ’…

and the pci_dev structure? that's how we know which instance we're being called from. it's the caller ID, basically. you pick up and go "oh hey, it's you" ✨

returns 0 on success πŸŽ‰ … or an error code (that's a negative one, hence the -ve notation) on failure πŸ’€ so yeah, check your return values, bestie, that's the whole game.


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file ./drivers/scsi/dc395x.c has a whole friend group and honestly we gotta shout out every single one of them, so buckle up bestie, here's the roster 🌈:

like, that's a lot of cousins, but we love them all equally 🧚 and yeah β€” dc395x_remove_one(9) is the one who shows up at the end to say goodbye. iconic symmetry, honestly.


and that's the page!! mwah πŸ’‹ this came from the ./drivers/scsi section, dated October 2026, and it's filed under dc395x_init_one(9) β€” go forth and initialise responsibly, bestie 🌟

πŸ“¦ where this page comes from