Darren J Moffat wrote: > Christian Kaiser wrote: >>> That is ptob(9F) of course, running a ptob command inside the kernel >>> would be tricky :-) But physmem already is the size in bytes. If >>> you want it in pages use btop(9F). Also you probably should use the >>> ddi_ptob(9F)/ddi_btop(9F) versions. >> >> ... a bit tricky? We are already using it ;-) Some others do as well, >> look here: >> http://src.opensolaris.org/source/search?q=%22ptob(1)%22&defs=&refs=&path=&hist=&project=%2Fonnv >> >> >> But ddi_ptob(9F) is the common way to find out the page size? > > I think you missed the joke. Tou said ptob(1) the (1) implies section 1 > man page which is a userland command. Kernel functions are section > (9F). Hence the :-) >
OK right... I missed the joke! I thought of (1) as argument not the man page section ;-) -- Christian Kaiser, Software Engineer, Dolphin Interconnect Solutions http//www.dolphinics.com _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
