Re: kmalloc question

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

 



>char *temp;
>
>if(!temp)
>	/* temp has not been kmalloced yet */
>else
>	/* temp has been kmalloced */


Where have you used kmalloc here ? 

char *temp;
temp = (char*) kmalloc(GFP_KERNEL,size);
if(!temp)
       /* cannot allocate */






--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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