On 06/06/2007 11:26 PM, Pavel Machek wrote:
Yes, it's internal but given that this is open-source which, optimistically, is read many more times than it's written one should still strive for code that reads nice as far as I'm concerned. It's obviously also not hugely important but it's just that ZERO_SIZE_PTR makes my neck hair stand up.PTR_TO_NOTHING? PTR_TO_0BYTES?PTR_TO_0SIZE? PTR_TO_ZERO_SIZE? NOT_QUITE_NULL? :-)
Particularly like that one. Wouldn't object to that at all. Hey, they tell us it's just some inconsequential internal thingy anyway... :-)
FULL?
Almost as nice. DULL? BULL? NOTHING? EMPTY? <-- nice one as far as I'm concerned. Rene. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)
- From: Christoph Lameter <[email protected]>
- Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)
- From: Pekka Enberg <[email protected]>
- Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)
- From: Christoph Lameter <[email protected]>
- Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)
- From: Andrew Morton <[email protected]>
- Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)
- From: Christoph Lameter <[email protected]>
- Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)
- From: Rene Herman <[email protected]>
- Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)
- From: "John Anthony Kazos Jr." <[email protected]>
- Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)
- From: Rene Herman <[email protected]>
- Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)
- From: Jeremy Fitzhardinge <[email protected]>
- Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)
- From: Rene Herman <[email protected]>
- Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)
- From: Pavel Machek <[email protected]>
- Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)
- Prev by Date: Kernel 2.6.22-rc4 netconsole & syslogd bug
- Next by Date: Re: [PATCH] trim memory not covered by WB MTRRs
- Previous by thread: Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)
- Next by thread: [PATCH] since the definition of dst_discard_in and dst_discard_out are the same,
- Index(es):