char driver error

Manohar Vanga manohar.vanga at gmail.com
Mon May 9 08:04:01 EDT 2011


Google for "kmalloc":
About 182,000 results (0.11 seconds)

http://lwn.net/Kernel/LDD3/

http://tldp.org/LDP/lkmpg/2.6/html/index.html

Make an effort. It usually helps :-)

On Mon, May 9, 2011 at 1:57 PM, Aravind Vijayan <aravind1123 at gmail.com>wrote:

> On 5/9/11, Manohar Vanga <manohar.vanga at gmail.com> wrote:
> > This line is incorrect. You need to learn how kmalloc (or any *alloc for
> > that matter) works because it seems like you don't realise what is
> happening
> > with this statement.
> >
> > memory_buffer = kmalloc(1, GFP_KERNEL);
> >
> >
>
> I am totally newbie to kernel and to drivers i wish to study about
> them seeking you all's help.....
>



-- 
/manohar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110509/575e05ec/attachment.html 


More information about the Kernelnewbies mailing list