Re: kernel memory allocations alignment

From: Manfred (
Date: Sun Feb 04 2001 - 10:56:13 EST

"Hen, Shmulik" wrote:
> When using kmalloc(size_t size), do I get a guaranty that the memory region
> allocated is aligned according to the size specified ?
> More to the point, if I call kmalloc for type int on an IA64 architecture is
> the pointer going to be 8 bytes aligned ?

Yes, kmalloc results are always 'sizeof(void*)' aligned.

Do you have stricter alignment requirements?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Feb 07 2001 - 21:00:19 EST