From: ebiederm@xmission.com (Eric W. Biederman)
To: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Pavel Emelyanov <xemul@parallels.com>,
KOSAKI Motohiro <kosaki.motohiro@gmail.com>,
LKML <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Kyle Moffett <kyle@moffetthome.net>, Tejun Heo <tj@kernel.org>,
Glauber Costa <glommer@parallels.com>,
Andi Kleen <andi@firstfloor.org>,
Matt Helsley <matthltc@us.ibm.com>,
Pekka Enberg <penberg@kernel.org>,
Eric Dumazet <eric.dumazet@gmail.com>,
Vasiliy Kulikov <segoon@openwall.com>,
Alexey Dobriyan <adobriyan@gmail.com>,
Herbert Xu <herbert@gondor.hengli.com.au>,
"David S. Miller" <davem@davemloft.net>,
Andrey Vagin <avagin@openvz.org>
Subject: Re: [RFC] on general object IDs again
Date: Wed, 11 Jan 2012 12:45:10 -0800 [thread overview]
Message-ID: <m1sjjmvui1.fsf@fess.ebiederm.org> (raw)
In-Reply-To: <20120111203423.GD28196@moon> (Cyrill Gorcunov's message of "Thu, 12 Jan 2012 00:34:23 +0400")
Cyrill Gorcunov <gorcunov@gmail.com> writes:
> On Thu, Jan 12, 2012 at 12:24:33AM +0400, Pavel Emelyanov wrote:
>> > In the second place the only reason why we would need O(N^2) complexity
>> > instead of O(NlogN) is if the comparison system call only compares for
>> > identity instead of returning a result that allows us to order the
>> > objects we are worrying about.
>>
>> Hm... I like this one. As I said we'd have to do the sorting anyway so
>> having the less-equals-above comparator right in the kernel sounds OK.
>>
>
> So it would look something like
>
> sys_cmp_kid(pid1, pid2, kid-type)
>
> (where kid is kernel-id), right ? Or I miss something ?
Pretty much.
For those objects you can have more than one of like file descriptors we
may want more parameters, or perhaps a family of syscalls.
We also probably don't want to want to talk about ids. Because we
aren't comparing ids, we are in principle comparing the objects
themselves and returning an arbitrary ordering.
Eric
prev parent reply other threads:[~2012-01-11 20:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-11 16:19 [RFC] on general object IDs again Cyrill Gorcunov
2012-01-11 17:25 ` KOSAKI Motohiro
2012-01-11 17:59 ` Cyrill Gorcunov
2012-01-11 18:19 ` KOSAKI Motohiro
2012-01-11 18:22 ` Pavel Emelyanov
2012-01-11 18:31 ` Cyrill Gorcunov
2012-01-11 19:29 ` KOSAKI Motohiro
2012-01-11 19:36 ` Pavel Emelyanov
2012-01-11 19:50 ` KOSAKI Motohiro
2012-01-11 19:57 ` Pavel Emelyanov
2012-01-11 19:59 ` Cyrill Gorcunov
2012-01-11 20:19 ` Eric W. Biederman
2012-01-11 20:24 ` Pavel Emelyanov
2012-01-11 20:34 ` Cyrill Gorcunov
2012-01-11 20:45 ` Eric W. Biederman [this message]
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=m1sjjmvui1.fsf@fess.ebiederm.org \
--to=ebiederm@xmission.com \
--cc=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=avagin@openvz.org \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=glommer@parallels.com \
--cc=gorcunov@gmail.com \
--cc=herbert@gondor.hengli.com.au \
--cc=kosaki.motohiro@gmail.com \
--cc=kyle@moffetthome.net \
--cc=linux-kernel@vger.kernel.org \
--cc=matthltc@us.ibm.com \
--cc=penberg@kernel.org \
--cc=segoon@openwall.com \
--cc=tj@kernel.org \
--cc=xemul@parallels.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox