FreeBSD Bugzilla – Attachment 13742 Details for
Bug 26006
Changing zone(9) man page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.26 KB, created by
Robert.Drehmel
on 2001-03-22 20:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Robert.Drehmel
Created:
2001-03-22 20:30:00 UTC
Size:
1.26 KB
patch
obsolete
>Index: zone.9 >=================================================================== >RCS file: /home/ncvs/src/share/man/man9/zone.9,v >retrieving revision 1.3 >diff -r1.3 zone.9 >63,73c63,73 >< The zone allocator stores state information inside the items proper, >< so structures that will be managed by the zone allocator must reserve >< two pointers at the very beginning for internal use by the zone >< allocator, as follows: >< .Bd -literal >< struct my_item { >< struct my_item *z_rsvd1; >< struct my_item *z_rsvd2; >< /* rest of structure */ >< }; >< .Ed >--- >> While an item is not in use, the first sizeof(void *) bytes are used >> for a pointer to another available item. When allocated, all of the >> item's space is available, except with >> .Dv INVARIANTS >> defined, where the second sizeof(void *) bytes are used for sanity >> checks, and we would get a panic trying to free the item if those bytes >> were somehow changed to >> .Dv ZENTRY_FREE . >> .Pp >> A similar algorithm is further described in Donald Knuth's `The Art of >> Computer Programming' volume 1, starting at page 254 (section 2.2.3). >191c191,193 >< .An Dag-Erling Co\(:idan Sm\(/orgrav Aq des@FreeBSD.org . >--- >> .An Dag-Erling Co\(:idan Sm\(/orgrav Aq des@FreeBSD.org >> and modified by >> .An Robert Drehmel .
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 26006
: 13742