Re: dev vs. sysctl

2006-09-04 Thread m . ehinger
"M. Warner Losh" <[EMAIL PROTECTED]> schrieb am 03.09.2006 18:01:08: > In the past I did some silly measurements and found that sysctls were > slower by a small amount. I never could figure out why, since the > path to the sysctl seemed like it would be shorter than the path to > the read. Th

Re: get DMI information in kernel

2006-09-01 Thread m . ehinger
Doug Ambrisko <[EMAIL PROTECTED]> schrieb am 25.08.2006 01:46:17: > You can look at the ipmi(4) driver. It gets the IPMI HW info via SMBIOS. > There is also and smbios driver as well. I tried to load the smbios driver but i got an "Unable to allocate memory resource" error. I now have writt

dev vs. sysctl

2006-09-01 Thread m . ehinger
Hello, i just want to know which one is faster? Which has the lowest overhead? I want to return 8 bytes (tow integer values) of data about 50 times a second. Thanks in advance Maik ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.o

Re: get DMI information in kernel

2006-08-23 Thread m . ehinger
Stefan Bethke <[EMAIL PROTECTED]> schrieb am 22.08.2006 21:22:31: > > kenv(2) has smbios entries; they're available through getenv() and > getenv_() in the kernel. See http://www.freebsd.org/cgi/ > cvsweb.cgi/src/sys/boot/i386/libi386/smbios.c for the history. > OK I can get the "System Inform

get DMI information in kernel

2006-08-22 Thread m . ehinger
Hello, how do i get DMI Informations (stuff displayed by dmidecode) in a kernel module? I need some "System Information" like Vendor,Model and OEM String identifying hardware on a Thinkpad. Can anybody give me a hint on that? Thanks in advance, Maik ___

nanosecond delay in kernel module

2006-08-15 Thread m . ehinger
Hi, what is the official way to delay in a kernel module for about 10 nanoseconds (1/1,000,000,000th second). I found DELAY(9), but it uses microseconds (1/1,000,000th second). Any help would be appeciated Maik ___ freebsd-hackers@freebsd.org maili

Thinkpad Accelerometer driver new Version 0.5

2005-09-13 Thread m . ehinger
Hi, anyone who is interested can download the source at https://sourceforge.net/project/showfiles.php?group_id=138242&package_id=160977 Use at your own risk! I've tested it on my T42 M1G with FreeBSD 7.0-Current (Aug 10) only. It now provides a mouse like device (/dev/accelm), which could be u

Re: Parking disk drive heads

2005-08-27 Thread m . ehinger
Thanks for that works well. Is there a way to lock the drive in that state for some seconds? What if an read/write request resumes the drive right after it was unloaded and we are still in a "shock" situation, if the drive is resumed before we hit the ground? Thanks Maik

IBM Active Protection System Approach

2005-08-22 Thread m . ehinger
Hi, what would be the best approach to implement aps on FreeBSD? I got an Accelerometer driver which will deliver data. First Version is available at https://sourceforge.net/project/showfiles.php?group_id=138242&package_id=160977 We have to poll the device for information quiet often to detect

Re: Parking disk drive heads

2005-08-18 Thread m . ehinger
I don't want to park them on turn off. I want to park them before a possible strong shock which could cause damage and unpark them afterwards. Thanks maik

Parking disk drive heads

2005-08-17 Thread m . ehinger
Hi, which is the correct way to park the hd head? I need it for the IBM Active Protection System implementation under FreeBSD. I got an working Accelerometer driver so far. BSD Version downloadable at https://sourceforge.net/project/showfiles.php?group_id=138242 thanks maik __