RE: Structure declaration without its members variables

2015-04-27 Thread Jeff Haran
-Original Message- From: kernelnewbies-boun...@kernelnewbies.org [mailto:kernelnewbies- boun...@kernelnewbies.org] On Behalf Of valdis.kletni...@vt.edu Sent: Sunday, April 26, 2015 7:23 PM To: harshkdev Cc: kernelnewbies@kernelnewbies.org Subject: Re: Structure declaration without

Structure declaration without its members variables

2015-04-26 Thread harshkdev
Hi, What does this syntax means in file Arch/arm64/include/asm/kvm_asm.h struct kvm; struct kvm_vcpu; Generally we declare structure and its member at same place. Regards Harsh Jain ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Structure declaration without its members variables

2015-04-26 Thread Valdis . Kletnieks
On Mon, 27 Apr 2015 00:16:59 +0530, harshkdev said: struct kvm; struct kvm_vcpu; Generally we declare structure and its member at same place. It's a forward declaration. Consider two structures that have pointers to each other: struct a { int b, c, d; struct *b b_ptr; } struct