strict weak aliases

2011-07-21 Thread David Young
Sometimes it is important that the type of an object matches the type of its weak alias. See the attached patch that both adds a type-safe __weak_alias() called __strict_weak_alias(), and fixes a buggy __weak_alias() that __strict_weak_alias() would have caught during compilation. Thanks to

Multiple device attachments

2011-07-21 Thread Frank Zerangue
/sys/device.h -- seems to indicate that a device driver can attach to multiple parent drivers (e.g. busses, controllers, …) /* * Devices can have multiple configuration attachments if they attach * to different attributes (busses, or whatever), to allow specification * of multiple match and

Re: Multiple device attachments

2011-07-21 Thread Mouse
/sys/device.h -- seems to indicate that a device driver can attach to multiple parent drivers (e.g. busses, controllers, ?) Does anyone know how this is done in practice? device wdc: ata, wdc_common attach wdc at isa with wdc_isa attach wdc at isapnp with wdc_iaspnp attach wdc at ofisa with

Re: Multiple device attachments

2011-07-21 Thread Michael
Hello, On Thu, 21 Jul 2011 14:44:04 -0500 Frank Zerangue frank.zeran...@gmail.com wrote: /sys/device.h -- seems to indicate that a device driver can attach to multiple parent drivers (e.g. busses, controllers, ?) /* * Devices can have multiple configuration attachments if they attach

Re: Multiple device attachments

2011-07-21 Thread Frank Zerangue
Thanks -- On Jul 21, 2011, at 3:18 PM, Michael wrote: Hello, On Thu, 21 Jul 2011 14:44:04 -0500 Frank Zerangue frank.zeran...@gmail.com wrote: /sys/device.h -- seems to indicate that a device driver can attach to multiple parent drivers (e.g. busses, controllers, ?) /* * Devices

Re: Multiple device attachments

2011-07-21 Thread Frank Zerangue
The examples you site seem to indicate that for example the le device may attach to many alternative devices (e.g. pci, tc, …), but only one attachment is made when autoconf is complete. I may have read the code examples incorrectly -- please pardon me if I did; but what I want to know is --

Re: Multiple device attachments

2011-07-21 Thread Michael
Hello, On Thu, 21 Jul 2011 16:24:11 -0500 Frank Zerangue frank.zeran...@gmail.com wrote: The examples you site seem to indicate that for example the le device may attach to many alternative devices (e.g. pci, tc, ?), but only one attachment is made when autoconf is complete. I may have

Re: Multiple device attachments

2011-07-21 Thread Paul Goyette
On Thu, 21 Jul 2011, Michael wrote: The examples you site seem to indicate that for example the le device may attach to many alternative devices (e.g. pci, tc, ?), but only one attachment is made when autoconf is complete. I may have read the code examples incorrectly -- please pardon me if I

Re: Multiple device attachments

2011-07-21 Thread Mouse
The examples you site seem to indicate that for example the le device may attach to many alternative devices (e.g. pci, tc, ?), but only one attachment is made when autoconf is complete. For any particular instance of le, yes. I may have read the code examples incorrectly -- please pardon me

Dutch keymap not imported into NetBSD :p

2011-07-21 Thread gilbert . fernandes
Hello. Broke my Thinkpad X30 keyboard while being in Germany. Found in a shop a brand new keyboard, told it was German. Turns out it's not German, it's Dutch. On the X30 I got NetBSD-5.1 and there is no nl keymap. Google pointed me to NetBSD problem report number 35473. Could Spanny patch be

Re: Dutch keymap not imported into NetBSD :p

2011-07-21 Thread Jukka Ruohonen
On the X30 I got NetBSD-5.1 and there is no nl keymap. Google pointed me to NetBSD problem report number 35473. Could Spanny patch be included into NetBSD-current ? Yes, I will commit it shortly. - Jukka.