include/nuttx/mm/map.h: Change mm_map_entry "priv" into union type

To be able to directly store also other than pointer types

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2023-01-03 15:06:39 +04:00
committed by Xiang Xiao
parent f864e5f657
commit 6e4ddf78bb
+5 -1
View File
@@ -49,7 +49,11 @@ struct mm_map_entry_s
off_t offset; off_t offset;
int prot; int prot;
int flags; int flags;
FAR void *priv; union
{
FAR void *p;
int i;
} priv;
/* Drivers which register mappings may also /* Drivers which register mappings may also
* implement the unmap function to undo anything done in mmap. * implement the unmap function to undo anything done in mmap.