> [lsof on debian kfreebsd] I don't think it makes much sense to extend linprocfs to be a full Linux /proc, just to be able to run monitoring tools. This would only be useful for Debian/kFreeBSD and not for real FreeBSD.
Instead, lsof should obtain its data via sysctl, either directly or via libprocstat (the library is new in 9.0 and the 9.0 kernel also contains additions to the sysctl interface needed by libprocstat). These interfaces are used by 'procstat -f', 'sockstat', 'fstat' and 'fuser' which together provide functionality similar to lsof. (In 8.x and earlier, fstat needs kmem access but not in 9.0 and later.) As with the move on Linux from kmem to /proc many years ago, some very specialized information may have to be given up, but that's worth it. -- Jilles Tjoelker -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

