On Fri, 2008-07-25 at 09:39 +0800, Herbert Xu wrote:I think that could probably be made to work. Perhaps something like: size_t kmalloc_extra(void *); /* how many extra bytes in this kmalloc? */ Which, if it didn't work, could return a nice safe 0. We could argue about signedness a bit, but I think this would always be safe. This will also work with all our current kmalloc implementations. The trouble was calling ksize() on kmem_cache_alloc objects, which happens to work with SLAB and SLOB. -- Mathematics is the supreme nostalgia of our time. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Christoph Lameter | [00/41] Large Blocksize Support V7 (adds memmap support) |
| Chuck Ebbert | Re: Linux 2.6.21 |
git: | |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Hugh Dickins | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| David Miller | [GIT]: Networking |
