Re: bug in subr_bus.c?

2003-03-23 Thread John-Mark Gurney
On Fri, 21 Mar 2003, Matthew N. Dodd wrote: On Fri, 21 Mar 2003, John-Mark Gurney wrote: So, the driver can: a) delete it's own children, but if it gets removed via device_delete_child, this work is already down for you. If you create children then you're going to be involved in

Re: bug in subr_bus.c?

2003-03-23 Thread M. Warner Losh
In message: [EMAIL PROTECTED] John-Mark Gurney [EMAIL PROTECTED] writes: : The bus code could use some locking in it... like you can't delete_child : from child_detache... and/or better docs on how to handle children... I'm : not even sure how I was doing things wrong, but I think it

bug in subr_bus.c?

2003-03-21 Thread John-Mark Gurney
Hello, It's been a while since I've been doing FreeBSD work, but I was recently working on a device driver for the Pinicle Micro DC10+ (Zoran chip) video en/decoder board and was making full use of the newbus system. I've been doing my devel work on 5.0-R (I'm in Thailand right now so I don't

Re: bug in subr_bus.c?

2003-03-21 Thread Matthew N. Dodd
On Fri, 21 Mar 2003, John-Mark Gurney wrote: So, the driver can: a)delete it's own children, but if it gets removed via device_delete_child, this work is already down for you. If you create children then you're going to be involved in removing them. There are helper routines that simplify