numam-dpdk/lib/librte_eal
Anatoly Burakov 41dbdb6872 mem: add external API to retrieve page fd
Now that we can retrieve page fd's internally, we can expose it
as an external API. This will add two flavors of API - thread-safe
and non-thread-safe. Fix up internal API's to return values we need
without modifying rte_errno internally if called from within EAL.

We do not want calling code to accidentally close an internal fd, so
we make a duplicate of it before we return it to the user. Caller is
therefore responsible for closing this fd.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-09-19 14:48:04 +02:00
..
bsdapp mem: add external API to retrieve page fd 2018-09-19 14:48:04 +02:00
common mem: add external API to retrieve page fd 2018-09-19 14:48:04 +02:00
linuxapp mem: add external API to retrieve page fd 2018-09-19 14:48:04 +02:00
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build eal: remove deprecated function for mbuf pool ops 2018-08-09 01:03:14 +02:00
rte_eal_version.map mem: add external API to retrieve page fd 2018-09-19 14:48:04 +02:00