iscsi_boot_create_ethernet(9)
π 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 π₯
- Kernel file
./drivers/scsi/iscsi_boot_sysfs.cβ the source, the lore, the origin story π iscsi_boot_create_target(9)iscsi_boot_create_initiator(9)iscsi_boot_create_acpitbl(9)iscsi_boot_create_kset(9)iscsi_boot_create_host_kset(9)iscsi_boot_destroy_kset(9)
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
- 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