Re: bus device/ivars

2012-05-31 Thread John Baldwin
On Thursday, May 31, 2012 12:15:48 pm Warner Losh wrote: > > On May 31, 2012, at 9:54 AM, John Baldwin wrote: > > > On Thursday, May 31, 2012 4:19:46 am Norbert Koch wrote: > >> Hello, > >> > >> I have written a bus device driver > >> which itself is a pci driver. Child devices > >> may allocate

Re: bus device/ivars

2012-05-31 Thread Warner Losh
On May 31, 2012, at 9:54 AM, John Baldwin wrote: > On Thursday, May 31, 2012 4:19:46 am Norbert Koch wrote: >> Hello, >> >> I have written a bus device driver >> which itself is a pci driver. Child devices >> may allocate resources from my bus device. >> >> My bus device does the usual >> manag

Re: bus device/ivars

2012-05-31 Thread John Baldwin
On Thursday, May 31, 2012 4:19:46 am Norbert Koch wrote: > Hello, > > I have written a bus device driver > which itself is a pci driver. Child devices > may allocate resources from my bus device. > > My bus device does the usual > management of resources through > the children's ivars. > > My qu

bus device/ivars

2012-05-31 Thread Norbert Koch
Hello, I have written a bus device driver which itself is a pci driver. Child devices may allocate resources from my bus device. My bus device does the usual management of resources through the children's ivars. My question is this: The bus device mallocs the children's ivars in bus_add_child a