|
|
发表于 2006-3-27 00:42:28
|
显示全部楼层
Post by littlestar
我只是想多个文件映射到同一个地址上,Windows下是可以这样做的。
你为什么要这么做? 希望将同一些内容同时写到那些文件?
据我所知,linux是做不到的
get_vm_area,有这个功能,但是内核级别的。
- 255 /**
- 256 * get_vm_area - reserve a contingous kernel virtual area
- 257 *
- 258 * @size: size of the area
- 259 * @flags: %VM_IOREMAP for I/O mappings or VM_ALLOC
- 260 *
- 261 * Search an area of @size in the kernel virtual mapping area,
- 262 * and reserved it for out purposes. Returns the area descriptor
- 263 * on success or %NULL on failure.
- 264 */
- 265 struct vm_struct *get_vm_area(unsigned long size, unsigned long flags)
- 266 {
- 267 return __get_vm_area(size, flags, VMALLOC_START, VMALLOC_END);
- 268 }
复制代码
似乎跟你说的不大一样 |
|