Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)

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

 



On 06/05/2007 03:58 PM, John Anthony Kazos Jr. wrote:

So "ZERO_SIZE_OBJ_PTR" is the most correct form, and "ZERO_SIZE_PTR" is a
convenient shortening. "ZERO_PTR" is too short and also confuses with NULL
because NULL is a zero-value object, rather than a non-zero--value pointer to
a zero-size object.

Like I said, I would prefer NIL of if absolutely need be NIL_PTR. NULL is a pointer that doesn't point anywhere valid -- NIL is a pointer that points to a zero sized object.

If I'd have a few small children around I'd show them the word ZERO_SIZE_PTR and make pictures of them bursting out in tears.

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/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux