[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kmalloc question
First in the code ur not show where ur using kmalloc .
Give more information regarding this.
Gita
----- Original Message -----
From: "D Cleveland" <dc7525@ship.edu>
To: <kernelnewbies@nl.linux.org>
Sent: Thursday, February 07, 2002 1:39 AM
Subject: kmalloc question
> I have a question about how to determine if something has been kmalloced
> or not. I thought this was the case:
>
> char *temp;
>
> if(!temp)
> /* temp has not been kmalloced yet */
> else
> /* temp has been kmalloced */
>
> This doesnt seem to be the case for my kernel code. Does anyone have any
> ideas of how I can do this? If more information would be useful, Ill post
> more. Thank you in advance!
>
> Dan
>
> --
> 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/
--
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/