mem: allow querying offset into segment fd
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 4 Sep 2018 15:15:49 +0000 (16:15 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 Sep 2018 13:01:58 +0000 (15:01 +0200)
commit3a44687139ebd99527397c7c976a39dbc779a61f
tree16271776d811af522ea39ec89416e22ff0e4998e
parent41dbdb68723b2d0b13ea47e9b8622c07c0f007c7
mem: allow querying offset into segment fd

In a few cases, user may need to query offset into fd for a
particular memory segment (for example, to selectively map
pages). This commit adds a new API to do that.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_eal/bsdapp/eal/eal_memalloc.c
lib/librte_eal/common/eal_common_memory.c
lib/librte_eal/common/eal_memalloc.h
lib/librte_eal/common/include/rte_memory.h
lib/librte_eal/linuxapp/eal/eal_memalloc.c
lib/librte_eal/rte_eal_version.map