mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: kmalloc() alignment
@ 2001-03-04 22:41 Manfred Spraul
  2001-03-06  0:06 ` Kenn Humborg
  0 siblings, 1 reply; 10+ messages in thread
From: Manfred Spraul @ 2001-03-04 22:41 UTC (permalink / raw)
  To: kenn; +Cc: linux-kernel

>
> Does kmalloc() make any guarantees of the alignment of allocated 
> blocks? Will the returned block always be 4-, 8- or 16-byte 
> aligned, for example? 
>

4-byte alignment is guaranteed on 32-bit cpus, 8-byte alignment on
64-bit cpus.

--
	Manfred

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-03-07  8:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-04 22:41 kmalloc() alignment Manfred Spraul
2001-03-06  0:06 ` Kenn Humborg
2001-03-06  0:15   ` H. Peter Anvin
2001-03-06  0:29     ` Kenn Humborg
2001-03-06  2:14       ` Alan Cox
2001-03-06  5:05         ` H. Peter Anvin
2001-03-06  8:31     ` Rogier Wolff
2001-03-06 12:10       ` Xavier Bestel
2001-03-07  7:53       ` RAID, 2.4.2 and Buslogic Jauder Ho
2001-03-07  8:20         ` Andreas Dilger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®