On Tue, Jun 8, 2010 at 4:32 PM, Dexter <[email protected]> wrote: > They are exactly the same. Someone used () in one declaration but not the > other, they are identical functionally. > > > On Tue, Jun 8, 2010 at 4:05 PM, Balachandar <[email protected]> wrote: > >> Hello, >> I came across the following statements and confused about it. >> >> typedef void vq_callback_t >> <http://lxr.linux.no/linux+*/+code=vq_callback_t>(struct virtqueue >> <http://lxr.linux.no/linux+*/+code=virtqueue> *); >> >> >> >> and in some other file >> >> vq_callback_t <http://lxr.linux.no/linux+*/+code=vq_callback_t> *callbacks >> <http://lxr.linux.no/linux+*/+code=callbacks>[] = { skb_recv_done >> <http://lxr.linux.no/linux+*/+code=skb_recv_done>, skb_xmit_done >> <http://lxr.linux.no/linux+*/+code=skb_xmit_done>, NULL >> <http://lxr.linux.no/linux+*/+code=NULL>}; >> >> >> >> Is this the same as >> typedef void (*vq_callback_t) >> <http://lxr.linux.no/linux+*/+code=vq_callback_t>(struct virtqueue >> <http://lxr.linux.no/linux+*/+code=virtqueue> *); >> >> >> vq_callback_t <http://lxr.linux.no/linux+*/+code=vq_callback_t> callbacks >> <http://lxr.linux.no/linux+*/+code=callbacks>[] = { skb_recv_done >> <http://lxr.linux.no/linux+*/+code=skb_recv_done>, skb_xmit_done >> <http://lxr.linux.no/linux+*/+code=skb_xmit_done>, NULL >> <http://lxr.linux.no/linux+*/+code=NULL>}; >> >> >> >> Thanks, >> Bala >> >> > I apologize, my eyes completely missed the * on the second function. Disregard what I said previously ^^.
Dexter
