Re: pge.c, its a power thing!

2003-11-18 Thread Jilles Tjoelker
On Tue, Nov 18, 2003 at 01:45:08AM -0600, John wrote:
> Sooo.. is there any chance someone could take a look at this

> http://www.seanadams.com/pge/pge.c

> and tell me what needs to be done to port this, or maybe just
> give me some pointers so i can spend the next year working on
> this? :)
> I think the big problem (well for me) will be converting this 
> from asm/io.h to something else. maybe ppi?

ppi would be more clean, but you can do it the same dirty way under
FreeBSD as well. Use i386_set_ioperm() instead of ioperm(). See the
manpage, although I think the arguments are the same. Use
 instead of  (ignore the comment about
, that's a kernel-only include file).

Ignore the setuid crap in the webpage, of course. Just start it as root
(that could be fixed if you used ppi).

Be warned that I haven't tested any of this.

-- 
Jilles Tjoelker
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pge.c, its a power thing!

2003-11-18 Thread John
Sooo.. is there any chance someone could take a look at this

http://www.seanadams.com/pge/pge.c

and tell me what needs to be done to port this, or maybe just
give me some pointers so i can spend the next year working on
this? :)
I think the big problem (well for me) will be converting this 
from asm/io.h to something else. maybe ppi?


If you want to see what the end result is check this out..

http://www.seanadams.com/pge/

i found this on a mrtg mailing list after looking around for
something like what phk did to monitor his gas usage.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"