Darren J Moffat wrote:

Is my understanding correct? If it is, does Solaris have an alternative for exporting more arbitrary information like Linux does?

Yes OpenSolaris does this in a much more structured way that the arbitrary format text files that Linux does.

For most of the things you do cat /proc/<muble>/<sometextfile> there is either a special admin command, or the data is available via kstats. See kstats(1M) which is a perl program interface to the kstats library functionality.

Thank you Darren for your response!

The problem I am trying to solve is that I want to export to userland some information that is available in a kernel module - let's say my kernel module.

The approaches that are being considered are 1) using the proc interface, 2) using ioctls.

Looks like 1 is not possible and 2 is the way out. Is iocts the way to go or is there a better mechanism you could suggest?

Regards,
Manoj
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to