Page MenuHomeFreeBSD

Consistent vm_map_entry loop naming
ClosedPublic

Authored by dougm on Nov 20 2019, 4:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 19 2024, 3:30 PM
Unknown Object (File)
Oct 2 2024, 5:51 AM
Unknown Object (File)
Sep 30 2024, 3:00 AM
Unknown Object (File)
Sep 22 2024, 4:01 AM
Unknown Object (File)
Sep 20 2024, 1:08 PM
Unknown Object (File)
Sep 20 2024, 1:08 PM
Unknown Object (File)
Sep 17 2024, 9:12 AM
Unknown Object (File)
Sep 16 2024, 6:41 PM
Subscribers

Details

Summary

Where 'current' is used to index over vm_map entries, use 'entry'. Where 'entry' is used to identify the starting point for iteration, use 'first_entry'. These are the naming conventions used in most of the vm_map.c code. Where VM_MAP_ENTRY_FOREACH can be used, do so. Squeeze a few lines to fit in 80 columns.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Nov 24 2019, 10:17 PM
sys/vm/vm_map.c
2521 ↗(On Diff #64620)

Eliminate extra parens around entry->protection.

2699 ↗(On Diff #64620)

I think that it's reasonable for this patch to wrap these lines.

3384 ↗(On Diff #64620)

!= 0

dougm marked 3 inline comments as done.
This revision now requires review to proceed.Nov 24 2019, 11:24 PM
This revision is now accepted and ready to land.Nov 24 2019, 11:27 PM