init_event_struct(9)
π init_event_struct β bestie edition β¨
okay so real talk, this is init_event_struct(9) from the Kernel API Manual, and it's literally the "get your event struct dressed and ready" function π
π¦ NAME π¦
init_event_struct β initializes the fields in an event struct that are always required. like, the non-negotiables. the bare minimum glow-up before your event goes out into the world π
β¨ SYNOPSIS β¨
void init_event_struct (struct srp_event_struct *evt_struct , void
(*done) (struct srp_event_struct *) , u8 format , int timeout );
no cap, that's the whole signature. void return, four args, she's not here to give you anything back π
πΈ ARGUMENTS πΈ
evt_structβ the event. that's it, that's the arg. the event itself, the main character πdoneβ the routine to call when the event is responded to. like a little callback bestie that gets pinged the moment someone answers π«ΆformatβSRPorMADformat. pick your vibe, there are exactly two π¦timeoutβ the timeout value, set in the CRQ. that's the number of time units of patience she's willing to have β³
π SEE ALSO π
okay this list is long, but every single one of these is invited to the party, so here we go β the whole squad, from the 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), 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), lun_from_dev(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)
ngl that's a lot of (9) pages. iykyk π
π the sign-off π
and that's the whole page, bestie! this one lives over in ./drivers/scsi/ibmvscsi, dated October 2026, and the section is init_event_struct(9) β slay, go initialize something, 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