logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nvme_mi_aem_enable - Enable AE on the provided endpoint

Arguments

ep Endpoint to enable AEs config AE configuraiton including which events are enabled and the callback function userdata Application provided context pointer for callback function

Description

This function is called to enable AE on the endpoint. Endpoint will provide initial state (if any) of enabled AEs and application can parse those via the aem_handler fn pointer in callbacks. Thes can be obtained in the callback by calling nvme_mi_aem_get_next_event. Application should poll the fd that can be obtained from nvme_mi_aem_get_fd and then call nvme_mi_aem_process when poll indicates data available. A call to nvme_mi_aem_process will grab AEM data and call the aem_handler fn pointer. At this point the application can call nvme_mi_aem_get_next_event to get information for each triggered event.

Name

nvme_mi_aem_enable - Enable AE on the provided endpoint

Return

0 is a success, nonzero is an error and errno may be read for further details August 2025 nvme_mi_aem_enable nvme_mi_aem_enable(2)

Synopsis

intnvme_mi_aem_enable(nvme_mi_ep_tep,structnvme_mi_aem_config*config,void*userdata);

See Also