Messages in this thread | | | Date | Tue, 7 Sep 2004 18:52:21 +0200 | From | Christoph Hellwig <> | Subject | Re: [PATCH] make kmem_find_general_cachep static in slab.c |
| |
On Tue, Sep 07, 2004 at 06:50:17PM +0200, Manfred Spraul wrote: > Why? > It's intended for users that want to kmalloc always the same amount of > memory. > For example the network layer could call kmem_find_general_cachep once > for dev->mtu and then just call kmem_cache_alloc instead of kmalloc. The > loop in kmalloc often needs more cpu cycles than the actual alloc.
Because there's no single user, and for constant size arguments kmalloc already optimizes very well, so I rather doubt people are ever going to use this one.
Is the basic don't design APIs for a maybe future scheme. - 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/
| |