docs/84946: 'Mbuf' instead of 'mbuf' in libmemstat(3)
Wojciech A. Koszek
dunstan at freebsd.czest.pl
Mon Aug 15 10:10:23 UTC 2005
>Number: 84946
>Category: docs
>Synopsis: 'Mbuf' instead of 'mbuf' in libmemstat(3)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Aug 15 10:10:21 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Wojciech A. Koszek
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD laptop.freebsd.czest.pl 7.0-CURRENT FreeBSD 7.0-CURRENT #15: Mon Aug 15 01:42:34 CEST 2005 dunstan at laptop.freebsd.czest.pl:/usr/obj/usr/src/sys/LAPTOP i386
>Description:
libmemstat(3) is case-sensitive in memstat_mtl_find():
LIST_FOREACH(mtp, &list->mtl_list, mt_list) {
if ((mtp->mt_allocator == allocator ||
allocator == ALLOCATOR_ANY) &&
strcmp(mtp->mt_name, name) == 0)
Example in manual page says:
dunstan at laptop:(~)$ man libmemstat | grep Mbuf
[..]
mtp = memstat_mtl_find(mtlp, ALLOCATOR_UMA, "Mbuf");
[..]
>How-To-Repeat:
dunstan at laptop:(~)$ vmstat -z | grep mbuf
mbuf_cluster: 2048, 17088, 128, 6, 128
mbuf: 256, 0, 385, 140, 426657
mbuf_packet: 256, 0, 388, 137, 150050
>Fix:
http://freebsd.czest.pl/dunstan/FreeBSD/diff.0.libmemstat.3
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-doc
mailing list