kmalloc returns the same address

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

 



Hi
I was trying to buffer some packets in NF_QUEUE handler
(in a kernel module). When I kmalloc some memory inside
the handler, the address returned is the same as that of
the info pointer that the queue handler gets. What am I
doing wrong?

To summarise:

int
enq_pkt (struct sk_buff *skb, struct nf_info *info, void *data)
{
   p = kmalloc(x, GFP_ATOMIC);
   OMG! p and info has the same address!
}

uname -a: Linux (none) 2.6.10_dev armv6l unknown

Toji


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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