|
|
@ -113,9 +113,11 @@ struct mmap_struct
|
|
|
|
//映射区域以4096字节为单位 (endaddr-address)%4096=0 ,每个进程addr起始地址0x2000000 + n*0x1000
|
|
|
|
//映射区域以4096字节为单位 (endaddr-address)%4096=0 ,每个进程addr起始地址0x2000000 + n*0x1000
|
|
|
|
unsigned long address;
|
|
|
|
unsigned long address;
|
|
|
|
unsigned long endaddr;
|
|
|
|
unsigned long endaddr;
|
|
|
|
|
|
|
|
off_t off;
|
|
|
|
int rw;//
|
|
|
|
int rw;//
|
|
|
|
int ps;//private or shared
|
|
|
|
int ps;//private or shared
|
|
|
|
struct mmap_struct *next;
|
|
|
|
struct mmap_struct *next;
|
|
|
|
|
|
|
|
struct m_inode *filenode;
|
|
|
|
int size;
|
|
|
|
int size;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|