diff options
| author | Vincenzo Maffione <vmaffione@FreeBSD.org> | 2018-04-09 09:24:26 +0000 |
|---|---|---|
| committer | Vincenzo Maffione <vmaffione@FreeBSD.org> | 2018-04-09 09:24:26 +0000 |
| commit | 4f80b14ce2b17100b12dc3a346fb9e6e76764e11 (patch) | |
| tree | e7c1347079629914a4d8c369d8d70121ee53904f /sys/net/netmap_virt.h | |
| parent | df4531ffd910985c8ec5a288a69adff34ceb6c03 (diff) | |
Notes
Diffstat (limited to 'sys/net/netmap_virt.h')
| -rw-r--r-- | sys/net/netmap_virt.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/net/netmap_virt.h b/sys/net/netmap_virt.h index a520a16dc9b1..751ae539d982 100644 --- a/sys/net/netmap_virt.h +++ b/sys/net/netmap_virt.h @@ -139,6 +139,13 @@ nmreq_pointer_put(struct nmreq *nmr, void *userptr) *pp = (uintptr_t)userptr; } +static inline void * +nmreq_pointer_get(const struct nmreq *nmr) +{ + const uintptr_t * pp = (const uintptr_t *)&nmr->nr_arg1; + return (void *)*pp; +} + /* ptnetmap features */ #define PTNETMAP_F_VNET_HDR 1 |
