[dpdk-dev] [PATCH v2 1/4] eal: add API to check if its interrupt context
Stephen Hemminger
stephen at networkplumber.org
Thu Nov 28 01:03:19 CET 2019
On Wed, 27 Nov 2019 15:52:19 +0530
Sunil Kumar Kori <skori at marvell.com> wrote:
>
> +/**
> + * @warning
> + * @b EXPERIMENTAL: this API may change without prior notice
> + *
> + * Check if currently executing in interrupt context
> + *
> + * @return
> + * - positive in case of interrupt context
> + * - zero in case of process context
> + * - negative if unsuccessful
> + */
> +__rte_experimental
> +int
> +rte_thread_is_intr(void);
If you only need this in drivers, it should be internal not exposed
as part of API
More information about the dev
mailing list