_scsih_sas_device_remove(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– _scsih_sas_device_remove (9) β€” kernel API manual, bestie edition ✨

okay so this is a page from the kernel API manual, section 9, and it's all about saying bye to a sas_device πŸ¦‹ like, removing it from the list. tiny function, big group-chat energy. let's get into it πŸ’…


✨ NAME ✨

_scsih_sas_device_remove β€” remove sas_device from list.

like literally that's the whole job. remove the sas_device from the list. she's a simple queen πŸŽ€


🌸 SYNOPSIS 🌸

void _scsih_sas_device_remove (struct MPT3SAS_ADAPTER *ioc , struct
_sas_device *sas_device );

returns void, so no return value to stress about 🫢 (yes the space before the comma is canon, don't @ me)


πŸ’œ ARGUMENTS πŸ’œ

  • ioc β€” per adapter object 🧚
  • sas_device β€” the sas_device object πŸ‘‘

two args, both iconic, both required πŸ’–


πŸ”₯ CONTEXT πŸ”₯

bestie listen up β€” this function will acquire ioc->sas_device_lock πŸ”’ that's the tea. it takes the lock. so like, plan accordingly, iykyk


⭐ DESCRIPTION ⭐

here's the whole vibe: if sas_device is on the list, remove it and decrement its reference count πŸ’€ that's it. that's the function. if she's on the list, she gets yeeted and her refcount goes down by one. no cap ✨


🌈 SEE ALSO 🌈

okay this part is LOWKEY a lot β€” the whole mpt3sas family reunion is invited πŸ™ˆ but we don't skip anyone in this house, so here's every single one:


that's everyone, no one left on read 🫢 anyway that's the whole page!! short and sweet, just like her πŸ’–βœ¨

this absolute banger of a page comes from ./drivers/scsi/mpt3sas, dated October 2026 β€” stan the kernel docs team, they ate πŸŽ€πŸ’…πŸ“

πŸ“¦ where this page comes from