All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Christoph Lameter <clameter@sgi.com>
Cc: akpm@osdl.org, linux-mm@kvack.org, Linus Torvalds <torvalds@osdl.org>
Subject: Re: Slab: Remove kmem_cache_t
Date: Wed, 29 Nov 2006 14:48:44 +1100	[thread overview]
Message-ID: <456D031C.6020003@yahoo.com.au> (raw)
In-Reply-To: <456D0FC4.4050704@yahoo.com.au>

(sorry about the clock skew)

Nick Piggin wrote:
> Christoph Lameter wrote:
> 
>>
>> kmem_cache_t would require a declaration. struct kmem_cache * can be 
>> used without a prior declaration in include files. Please review the 
>> earlier discussion on linux-mm regarding the removal of the global 
>> slab caches from <linux/slab.h>.
>>
>> Frankly the maintenance of the opaque type here has caused us enough 
>> grief over the years. I would like to get rid of it in the future and 
>> declare the contents of struct kmem_cache in slab.h. That will allow 
>> us to simplify the slab bootstrap and make it easier to understand. 
>> One reason slab bootstrap is so complex because one cannot simple do a 
>> static declaration of a struct kmem_cache and start off with it. See 
>> the earlier discussion with Matt Mackall on the slabifier design.
> 
> 
> That's all fine, we're not talking about any of the mechanism to how any
> of that works, just what the type is called. So what exactly is wrong with
> a kmem_cache_t declaration in include files, then?


Also note that when I say opaque type, I don't mean that you should leave
the declaration of struct kmem_cache in mm/slab.c.

I just mean that this patch seems like pointless churn, and a typedef is
reasonable if not desirable in slab API users where kmem_cache_t *is* an
opaque type (ie. they have no business accessing any struct members).

-- 
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2006-11-29  3:48 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-29  2:49 Slab: Remove kmem_cache_t Christoph Lameter
2006-11-29  3:06 ` Andrew Morton
2006-11-29  4:06 ` Nick Piggin
2006-11-29  3:32   ` Christoph Lameter
2006-11-29  4:42     ` Nick Piggin
2006-11-29  3:48       ` Nick Piggin [this message]
2006-11-29  4:06       ` Andrew Morton
2006-11-29  4:38         ` Linus Torvalds
2006-11-29  5:51           ` Nick Piggin
2006-11-29 15:48             ` Linus Torvalds
2006-11-30  1:40               ` Nick Piggin
2006-11-30  1:59                 ` Linus Torvalds
2006-11-30  2:14                   ` Nick Piggin
2006-11-30  2:37                     ` Linus Torvalds
2006-11-30  2:51                       ` Nick Piggin
2006-11-29  6:21           ` Nick Piggin
2006-11-29  6:21             ` Nick Piggin
2006-11-29 16:11             ` Linus Torvalds
2006-11-29 16:11               ` Linus Torvalds
2006-11-29  5:41         ` Nick Piggin
2006-11-29  6:24           ` Andrew Morton
2006-11-29  6:41             ` Nick Piggin
2006-11-29  7:08               ` Andrew Morton
2006-11-29  7:23                 ` Nick Piggin
2006-11-29  7:41                   ` Andrew Morton
2006-11-29  8:04                     ` Nick Piggin
2006-11-29 16:23                       ` Linus Torvalds
2006-11-30  1:44                         ` Nick Piggin
2006-11-29 19:16               ` Christoph Lameter
2006-11-29  8:50 ` Peter Zijlstra
2006-11-29 19:27   ` Christoph Lameter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=456D031C.6020003@yahoo.com.au \
    --to=nickpiggin@yahoo.com.au \
    --cc=akpm@osdl.org \
    --cc=clameter@sgi.com \
    --cc=linux-mm@kvack.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.