Hi all,
is it possible to create a memory object that represents
anonymous memory pages *and* is copy-on-write?
I have this code in a kernel module:
object = vm_object_allocate(OBJT_DEFAULT, 1);
result = vm_map_find(vmmap_proc,
object,
0,
&addr,
len,
TRUE,
VM_PROT_ALL,
VM_PROT_ALL,
MAP_COPY_ON_WRITE);
Then I pass the addr to the user space, but when
I write to the addr, I see no shadow objects created,
i.e. the changes are written to the original memory
pages no matter if I have the map entry set as
copy-on-write or not... I am assuming a write fault would
create a new page and hang it to a shadow object thus
leaving the original memory untouched.
I'd appreciate any kind of help here.
Best regards,
Teemu Rinta-aho
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
| Arjan van de Ven | [patch] Add basic sanity checks to the syscall execution patch |
| Andi Kleen | [PATCH CPA] [1/28] Shrink __PAGE_KERNEL/__PAGE_KERNEL_EXEC on non PAE kernels |
| Alex Dubov | Re: [2.6.20] tifm_7xx1/mmc not working |
| Jared Hulbert | [PATCH 00/10] AXFS: Advanced XIP filesystem |
git: | |
| Junio C Hamano | More precise tag following |
| walt | git versus CVS (versus bk) |
| Stephen R. van den Berg | RFC: grafts generalised |
| Pierre Habouzit | [PATCH 1/2] Add strbuf_cmp. |
| Richard Stallman | Real men don't attack straw men |
| K K | Re: No Blob without Puffy |
| Stephan A. Rickauer | Re: Net-SNMP segfaults under OpenBSD 4.3 |
| Brian A. Seklecki | sshd_config(5) PermitRootLogin yes |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Howard Wei-Hao Pan | [Q] Does Linux work with PCMCIA devices? |
| Curtis Yarvin | Re: Problem with UNCOMPRESS |
| Ross Sponholtz | Re: S3 |
