iscsi_boot_create_target(9)
πΈ iscsi_boot_create_target(9) πΈ
okay bestie, gather round, because we're diving into the Kernel API Manual and today's main character is iscsi_boot_create_target π
β¨ NAME β¨
iscsi_boot_create_target β literally just creates a boot target sysfs dir, that's the whole vibe π
π¦ SYNOPSIS π¦
struct iscsi_boot_kobj * iscsi_boot_create_target (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) );
no cap, that's the whole signature, every char exactly as it is π
π ARGUMENTS π
boot_ksetβ the boot kset, your home base for this whole operation πindexβ the target id, aka which target we're talking about π’dataβ driver specific data for the target, like its little backpack of custom info πshowβ the attr show function, the one that serves the tea when someone reads the attribute βis_visibleβ the attr visibility function, deciding who gets to see what πreleaseβ the release function, the cleanup crew π§Ή
β οΈ NOTE β οΈ
okay this part is important so listen up π«Ά the boot sysfs lib will free the data passed in for the caller when all refs to the target kobject have been released. so like... don't go freeing that data yourself afterwards, because the lib is gonna do it and it does not want you double-dipping π
π SEE ALSO π
Kernel file ./drivers/scsi/iscsi_boot_sysfs.c
and the whole friend group:
iscsi_boot_create_initiator(9)iscsi_boot_create_ethernet(9)iscsi_boot_create_acpitbl(9)iscsi_boot_create_kset(9)iscsi_boot_create_host_kset(9)iscsi_boot_destroy_kset(9)
and that's the page, bestie π§ shoutout to ./drivers/scsi for housing all this, dated October 2026, and to iscsi_boot_create_target(9) itself for being the icon it is β periodt ππ₯
π¦ 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