lkml.org 
[lkml]   [2005]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 3/4] per-platform IA64_{FIRST,LAST}_DEVICE_VECTOR definitions
    On Wed, Dec 21, 2005 at 01:18:43PM -0600, Mark Maule wrote:
    > Ok. Was just following the lead of this:
    >
    > static struct msi_desc* msi_desc[NR_IRQS] = { [0 ... NR_IRQS-1] = NULL };
    >
    > So arrays are always init'd to zero?

    Static variables without an initialiser go to the bss section and get
    initialised to 0 by the loader. So the initialisation above is
    redundant on all machines which use a bitpattern of zeros to represent
    the NULL pointer. Which is all machines Linux runs on.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-12-21 20:35    [W:0.024 / U:1.652 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site