iscsi_boot_create_ethernet(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– iscsi_boot_create_ethernet πŸ’–

okay bestie, so this one is a kernel API function from the iscsi_boot_... family β€” the manual even lives under the name iscsi_boot_create_ethernet(9), iykyk. It's the little helper that spins up the boot ethernet sysfs dir. That's the whole vibe. Short function, big job. Let's get into it 🫢


✨ SYNOPSIS ✨

struct iscsi_boot_kobj * iscsi_boot_create_ethernet (struct
iscsi_boot_kset *boot_kset , int index , void *data , ssize_t (*show)
(void *data, int type, char *buf) , umode_t (*is_visible) (void *data,
int type) , void (*release) (void *data) );

literally one call, and it hands you back a struct iscsi_boot_kobj *. main character return type tbh πŸ’…


🌸 ARGUMENTS 🌸

  • boot_kset β€” the boot kset. yep. that's the kset for boots. it's giving "you already know" πŸŽ€
  • index β€” the ethernet device id. it's like the device's lil name tag so everyone knows which ethernet we're talking about πŸ¦‹
  • data β€” driver specific data. it's your data, you bring it, you own it (until you don't β€” see the note below, bestie, it's important 😭)
  • show β€” attr show function. the one that coughs up the contents of your attribute into a buffer. signature: ssize_t (*show) (void *data, int type, char *buf) ⭐
  • is_visible β€” attr visibility function. decides whether the attr shows its face in sysfs at all. signature: umode_t (*is_visible) (void *data, int type) πŸ‘€
  • release β€” release function. the cleanup era. called when it's time to let go 🧚

πŸ’€ NOTE πŸ’€

bestie. read this one twice, fr fr. The boot sysfs lib will free the data passed in for the caller when all refs to the ethernet kobject have been released. so like… you don't free it yourself, and you definitely don't keep poking at it afterwards. the library is the one holding the leash here πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

like the whole friend group, honestly. go read them all 🌈


and that's a wrap, bestie ✨ this page lives in ./drivers/scsi, it's dated October 2026, and it comes to you courtesy of the Kernel API Manual. slay, go create some ethernet sysfs dirs πŸ’–πŸŽ€

πŸ“¦ where this page comes from