Re: Showing custom statistics to userspace (/proc interface?)
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Organization: calsoft User-agent: KMail/1.11.90 (Linux/2.6.28-11-generic; KDE/4.2.90; i686; ; )
Particularly for arbitrary statistics private to your FS that are privately formatted and meaningless to everyone else, you will need to expose them via an fsctl() and query for them. Or you can expose them via an fcntl() after obtaining a file handle for an object known to be on your file system. Or you can expose them in your own namespace; if exposing them in the FS namespace in a procfs is in theory somehow a good idea, exposing the same information in the FS namespace for AbhijitFS is also in theory a good idea.
Personally, I'd go with the fsctl().
Yes, i guess a private fcntl is the way to go. Thanks. Abhijit _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Abhijit Bhopatkar