SookYoung Kim wrote:

> 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.

What about
  memset (p, 0, sizeof(*p));

memset is available in kernel space.

---
Henrik Nordstrom

Reply via email to