Date: Sun, 08 Apr 2007 11:05:48 -0700 From: Garrett Cooper <youshi10@u.washington.edu> To: freebsd-hackers@freebsd.org Subject: Discovering list of open files from "kernel level" without using utils like lsof Message-ID: <46192EFC.6030906@u.washington.edu>
next in thread | raw e-mail | index | archive | help
Hello, I'm trying to see whether it's possible to grab the list of files open from a kernel level on FreeBSD, using a userland library interface as opposed to lsof. I'm trying to see if there's a simple tool that I could code in C/C++ if necessary to spin down disks automatically to save power and disk life. Plus, I think that lsof actually would probe the devices and 'wake them up' instead of keeping them as-is. However, I could be wrong so if I am please let me know. TIA, -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46192EFC.6030906>