mess_11 m_m11;
mess_mmap m_mmap;
mess_notify m_notify;
+ mess_vm_vfs_mmap m_vm_vfs_mmap;
mess_vmmcp m_vmmcp;
mess_vmmcp_reply m_vmmcp_reply;
- mess_vm_vfs_mmap m_vm_vfs;
mess_sigcalls m_sigcalls; /* SYS_{GETKSIG,ENDKSIG,KILL,SIGSEND,SIGRETURN} */
u8_t size[56]; /* message payload may have 56 bytes at most */
};
memset(&m, 0, sizeof(message));
- m.m_vm_vfs.who = who;
- m.m_vm_vfs.offset = offset;
- m.m_vm_vfs.dev = dev;
- m.m_vm_vfs.ino = ino;
- m.m_vm_vfs.vaddr = vaddr;
- m.m_vm_vfs.len = len;
- m.m_vm_vfs.fd = fd;
- m.m_vm_vfs.clearend = clearend;
- m.m_vm_vfs.flags = flags;
+ m.m_vm_vfs_mmap.who = who;
+ m.m_vm_vfs_mmap.offset = offset;
+ m.m_vm_vfs_mmap.dev = dev;
+ m.m_vm_vfs_mmap.ino = ino;
+ m.m_vm_vfs_mmap.vaddr = vaddr;
+ m.m_vm_vfs_mmap.len = len;
+ m.m_vm_vfs_mmap.fd = fd;
+ m.m_vm_vfs_mmap.clearend = clearend;
+ m.m_vm_vfs_mmap.flags = flags;
return _syscall(VM_PROC_NR, VM_VFS_MMAP, &m);
}
/* It might be disabled */
if(!enable_filemap) return ENXIO;
- clearend = m->m_vm_vfs.clearend;
- flags = m->m_vm_vfs.flags;
+ clearend = m->m_vm_vfs_mmap.clearend;
+ flags = m->m_vm_vfs_mmap.flags;
- if((r=vm_isokendpt(m->m_vm_vfs.who, &n)) != OK)
- panic("bad ep %d from vfs", m->m_vm_vfs.who);
+ if((r=vm_isokendpt(m->m_vm_vfs_mmap.who, &n)) != OK)
+ panic("bad ep %d from vfs", m->m_vm_vfs_mmap.who);
vmp = &vmproc[n];
- return mmap_file(vmp, m->m_vm_vfs.fd, m->m_vm_vfs.offset,
+ return mmap_file(vmp, m->m_vm_vfs_mmap.fd, m->m_vm_vfs_mmap.offset,
MAP_PRIVATE | MAP_FIXED,
- m->m_vm_vfs.ino, m->m_vm_vfs.dev,
+ m->m_vm_vfs_mmap.ino, m->m_vm_vfs_mmap.dev,
(u64_t) LONG_MAX * VM_PAGE_SIZE,
- m->m_vm_vfs.vaddr, m->m_vm_vfs.len, &v,
+ m->m_vm_vfs_mmap.vaddr, m->m_vm_vfs_mmap.len, &v,
clearend, flags, 0);
}