From 1ce684cd4ca2469befe977b437cfdf3aa154eee9 Mon Sep 17 00:00:00 2001 From: forever-learner <2360561713@qq.com> Date: Sun, 3 Jul 2022 19:57:05 +0800 Subject: [PATCH] struct mmap changes --- linux/include/linux/sched.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux/include/linux/sched.h b/linux/include/linux/sched.h index ea9fd3d..ae8e8a8 100644 --- a/linux/include/linux/sched.h +++ b/linux/include/linux/sched.h @@ -113,9 +113,11 @@ struct mmap_struct //映射区域以4096字节为单位 (endaddr-address)%4096=0 ,每个进程addr起始地址0x2000000 + n*0x1000 unsigned long address; unsigned long endaddr; + off_t off; int rw;// int ps;//private or shared struct mmap_struct *next; + struct m_inode *filenode; int size; }; /*