Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2006 12:13:07 +0000
From:      Baldur Gislason <baldur@foo.is>
To:        Tofig Suleymanov <tofik@oxygen.az>
Cc:        usb@freebsd.org
Subject:   Re: USB_ATTACH_SETUP macros question
Message-ID:  <20060817121307.GA804@gremlin.foo.is>
In-Reply-To: <35069.85.132.32.38.1155816624.squirrel@85.132.32.38>
References:  <35069.85.132.32.38.1155816624.squirrel@85.132.32.38>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-usb
> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060817121307.GA804>