[lkml]   [2006]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 1/1] network memory allocator.
    On Wed, Aug 16, 2006 at 02:40:08AM -0700, David Miller wrote:
    > From: Christoph Hellwig <>
    > Date: Wed, 16 Aug 2006 10:38:37 +0100
    > > We could, but I'd rather waste 4 bytes in struct net_device than
    > > having such ugly warts in common code.
    > Why not instead have struct device store some default node value?
    > The node decision will be sub-optimal on non-pci but it won't crash.

    Right now we don't even have the node stored in the pci_dev structure but
    only arch-specific accessor functions/macros. We could change those to
    take a struct device instead and make them return -1 for everything non-pci
    as we already do in architectures that don't support those helpers. -1
    means 'any node' for all common allocators.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-08-16 11:47    [W:0.019 / U:4.528 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site