On Thu, 2008-07-24 at 22:37 +0800, Herbert Xu wrote:Let's try this again: did you know that ksize could fail depending on kernel configuration? Most of us would answer no. That suggests the API is bad. This ranks 12 on Rusty's spectrum of user-friendly APIs: http://ozlabs.org/~rusty/ols-2003-keynote/img51.html Ahh. I see what you're saying. You may be right about that, or you may be wrong: I don't know which of the millions of mass market embedded Linux devices out there are using it. And of course I argue that SLOB did do the right thing, which was only allowing ksize on kmalloced objects. It's an accident of implementation that kmalloc and kmem_cache_alloc use the same underlying allocator. It has not been true at all points in the past, it's not true for some users in the present, and it may not be true for most users in the future. Thus, it's a bad idea to try to use ksize on something that wasn't kmalloced. If you have an argument for reintroducing ksize based on an actual use case, let's please move on to (or back to) it so that we can have some substance to this discussion. -- 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 |
