mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
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:
committed by
Xiang Xiao
parent
f864e5f657
commit
6e4ddf78bb
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user