RE: __request_resource implemenation doubt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




>struct resource *tmp, **p;
...
>p = &root->child;

>child member of root is NULL right??? cos it was'nt initialized
>to any specfic val (so it wud have the default val. of NULL).


As this is 
      &root->child and not
        root->child, 'p' wont be NULL but the address of child 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux