On Wed, 26 Jun 2002, Manoj wrote: > Hello all, > > While going through Linux USB code I found declarations like: > > struct usb_config_descriptor { > __u8 bLength __attribute__ ((packed)); > __u8 bDescriptorType __attribute__ ((packed)); > __u16 wTotalLength __attribute__ ((packed)); > __u8 bNumInterfaces __attribute__ ((packed)); > __u8 bConfigurationValue __attribute__ ((packed)); > __u8 iConfiguration __attribute__ ((packed)); > __u8 bmAttributes __attribute__ ((packed)); > __u8 MaxPower __attribute__ ((packed)); > } > > Can anybody tell me the difference between __u8 and u8 > what is meant by __attribute__ ((packed)) >
> Is this some kernel level stuff. If I want to use this declarations at user > level how do I need to change these. You should never use kernel definitions in user code. Linus said so. Jon > > Thanks > > Manoj > > > > _______________________________________________ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list