USB_ATTACH_SETUP macros question
Baldur Gislason
baldur at foo.is
Thu Aug 17 12:13:12 UTC 2006
This isn't an infinite loop, in fact it will never be executed.
Baldur
On Thu, Aug 17, 2006 at 05:10:02PM +0500, Tofig Suleymanov wrote:
> Hello hackers,
>
> is there anybody to explain why do we have infinite loop inside of
> USB_ATTACH_SETUP macros inside of usb_port.h ? How does his loop gets
> escaped when we use it in some usb driver ?
>
> #define USB_ATTACH_SETUP \
> do { \
> sc->sc_dev = self; \
> device_set_desc_copy(self, devinfo); \
> device_printf(self, "%s\n", devinfo); \
> } while (0);
>
> Thank you !
>
> Tofig Suleymanov
>
> _______________________________________________
> freebsd-usb at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-usb
> To unsubscribe, send any mail to "freebsd-usb-unsubscribe at freebsd.org"
>
More information about the freebsd-usb
mailing list