lun_from_dev(9)
π lun_from_dev(9) β Kernel API Manual π
okay so bestie, welcome to lun_from_dev(9) from the Kernel API Manual β it's a tiny little page but it does exactly one thing and it does it iconically. no cap.
β¨ NAME β¨
lun_from_dev β literally returns the lun of the scsi device. that's it. that's the whole gig. she's a one-job icon and she ate. π
πΈ SYNOPSIS πΈ
u16 lun_from_dev (struct scsi_device *dev );
copy it exactly like that, mwah. π
π ARGUMENTS π
devβ astruct scsi_device. that's the whole description, bestie, the docs said "struct scsi_device" and honestly? valid. it's giving "the assignment was one sentence and I submitted one sentence." π«Ά
lowkey a vibe check: the function hands you back au16(that's the return type up in the synopsis, iykyk), and the only thing it wants from you is thatdevpointer. no hidden extras, no secret flags, fr fr.
π¦ SEE ALSO π¦
okay this is where it gets spicy πΆοΈ β the original just dumps the entire ibmvscsi cast list on you, and we are NOT skipping a single one, because every name here is a main character:
- Kernel file
./drivers/scsi/ibmvscsi/ibmvscsi.c ibmvscsi_handle_event(9)ibmvscsi_release_crq_queue(9)crq_queue_next_crq(9)ibmvscsi_send_crq(9)ibmvscsi_task(9)ibmvscsi_reset_crq_queue(9)ibmvscsi_init_crq_queue(9)ibmvscsi_reenable_crq_queue(9)initialize_event_pool(9)release_event_pool(9)valid_event_struct(9)free_event_struct(9)get_event_struct(9)init_event_struct(9)unmap_cmd_data(9)map_sg_data(9)map_data_for_srp_cmd(9)purge_requests(9)ibmvscsi_set_request_limit(9)ibmvscsi_reset_host(9)ibmvscsi_timeout(9)ibmvscsi_send_srp_event(9)handle_cmd_rsp(9)ibmvscsi_queuecommand_lck(9)map_persist_bufs(9)unmap_persist_bufs(9)login_rsp(9)send_srp_login(9)capabilities_rsp(9)send_mad_capabilities(9)fast_fail_rsp(9)enable_fast_fail(9)adapter_info_rsp(9)send_mad_adapter_info(9)ibmvscsi_eh_host_reset_handler(9)ibmvscsi_handle_crq(9)ibmvscsi_sdev_configure(9)ibmvscsi_change_queue_depth(9)ibmvscsi_get_desired_dma(9)ibmvscsi_resume(9)
likeβ¦ forty whole references. she said "here's my entire friend group, meet everyone." π iconic behavior honestly.
π sign-off π
and that's the page, bestie!! π this lil beauty lives in ./drivers/scsi/ibmvscsi, and the version/date stamp on it is October 2026 β so yeah, she's from the future, we don't ask questions. π§β¨ go forth and get that lun. π
π¦ 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