Warner Losh wrote: > > One should generally only call these functions in attach. If you must > call them in probe, one must release the resource before returning > from the probe. However, since they can affect bridge settings, it > may be unavoidable to call them from the probe routine. The code seems to guarantee that if the probe routine returns 0 then the attach routine will be called right away. So if the probe routine returns 0 they don't have to be freed. Actually, the comments seem to say explicitly that the resources should be freed only if the probe routine returns a negative value but not 0. Or am I missing something ? -SB To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- request for review: bus_alloc_resource(9) Alexander Langer
- Re: request for review: bus_alloc_resource(9) Matthew N. Dodd
- Re: request for review: bus_alloc_resource(9) Mike Smith
- Re: request for review: bus_alloc_resource(9) Alexander Langer
- Re: request for review: bus_alloc_resource(9... Mike Smith
- Re: request for review: bus_alloc_resour... Alexander Langer
- Re: request for review: bus_alloc_resource(9) Alexander Langer
- Re: request for review: bus_alloc_resource(9) Warner Losh
- Re: request for review: bus_alloc_resource(9) Mike Smith
- Re: request for review: bus_alloc_resource(9... Warner Losh
- Re: request for review: bus_alloc_resource(9) Sergey Babkin
- Re: request for review: bus_alloc_resource(9) Warner Losh
- Re: request for review: bus_alloc_resource(9... Sergey Babkin
- Re: request for review: bus_alloc_resource(9... Warner Losh
- Re: request for review: bus_alloc_resour... Sergey Babkin
- Re: request for review: bus_alloc_resour... Warner Losh
- Re: request for review: bus_alloc_resource(9) Alexander Langer