Hi, all
I need your idea in my code. I want to use kmalloc() to allocate kernel
memery and initialize it as a ZERO. For example,

struct foo {
    unsigned char foo1[10];
    unsigned  long foo2;
    struct foo *next;
}

struct foo *p;
p = (struct foo*)kmalloc(sizeof(struct foo),GFP_KERNEL);

and then I must initialize the memory area as a 0.but I can't get an
idea.
I wish somebody could help me.

Is it a simple question? For me, it isn't.

" I always thank you all who read and answered."
--
Sook Young Kim
H.P:  011-798-4343
E-mail: [EMAIL PROTECTED]
        [EMAIL PROTECTED]

Reply via email to