Page MenuHomeFreeBSD

vm_map_protect(9) fails to document KERN_RESOURCE_SHORTAGE return value.
ClosedPublic

Authored by dougm on Jun 25 2019, 6:31 AM.
Tags
None
Referenced Files
F131830507: D20751.id58983.diff
Sat, Oct 11, 12:59 PM
F131830473: D20751.id59005.diff
Sat, Oct 11, 12:59 PM
F131830433: D20751.id59016.diff
Sat, Oct 11, 12:58 PM
Unknown Object (File)
Thu, Oct 9, 5:04 PM
Unknown Object (File)
Sun, Sep 28, 4:21 PM
Unknown Object (File)
Sat, Sep 27, 10:22 PM
Unknown Object (File)
Sat, Sep 27, 12:31 PM
Unknown Object (File)
Fri, Sep 26, 11:58 PM
Subscribers

Details

Summary

This patch is a meager attempt to correct that.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

vm_map_protect.9
99

The range isn't being allocated. It is copy-on-write, and it is transitioning from read-only to read/write.

vm_map_protect.9
100

I think it is somewhat too cryptic. 'If copy-on-write mapping is transitioned from ro to rw, too little swap space is available for backing the copied pages'.

Accept Kostik's suggestion.

markj added inline comments.
vm_map_protect.9
99

"If a copy-on-write mapping is transitioned from read-only to read-write..."

This revision is now accepted and ready to land.Jun 25 2019, 4:41 PM

With Mark' note, accepted.

Accept reviewer suggestion.

This revision now requires review to proceed.Jun 25 2019, 4:47 PM
vm_map_protect.9
99

Still missing an article: "If a copy-on-write..."

This revision is now accepted and ready to land.Jun 25 2019, 5:15 PM