From: Jan Kiszka <kiszka@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [RFC] define your own pipe heap
Date: Tue, 22 Nov 2005 21:27:35 +0100 [thread overview]
Message-ID: <43837F37.8040406@domain.hid> (raw)
In-Reply-To: <43836DA2.90705@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1451 bytes --]
Philippe Gerum wrote:
> Jan Kiszka wrote:
>
>> Philippe Gerum wrote:
>>
>>> Jan Kiszka wrote:
>>>
>>>> Jan Kiszka wrote:
>>>>
>>>>
>>>>> ...
>>>>> A patch says more than thousand words. ;)
>>>>>
>>>>> As a first approach, I picked the second variant and implemented a new
>>>>> function called rt_pipe_setpool. I also had to extend rt_pipe_alloc
>>>>> and
>>>>> rt_pipe_free so that the right pool is used by them.
>>>>>
>>>>
>>>>
>>>> I thought about this variant again, and it seems to me rather unsafe in
>>>> case some buffer allocation takes place between rt_pipe_create and
>>>> rt_pipe_setpool. So, here is a patch which extends rt_pipe_create
>>>> with a
>>>> new argument poolsize instead.
>>>>
>>>
>>> Yep, looks safer to me too.
>>>
>>
>>
>> Ok, I addressed most your comments, and here is round 2 of variant 2.
>> The only question for me is if we should rt_pipe_create in kernel space
>> from RT context with poolsize=0 if this is prevented effectively for
>> userspace task?
>
>
> This is not prevented for user-space, since there is an automatic switch
> to secondary mode caused by the lostage exec bit.
That's what I meant. Anyway, this doesn't change the situation:
rt_pipe_create is not called in primary context from userspace, so the
questions if we should allow this for kernelspace and poolsize=0.
>
> So far, I deny any non-RT invocation.
>
>>
>
> You likely mean, any non-Linux invocation.
>
Of course, I did.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
prev parent reply other threads:[~2005-11-22 20:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-21 19:29 [Xenomai-core] [RFC] define your own pipe heap Jan Kiszka
2005-11-21 23:54 ` Jan Kiszka
2005-11-22 10:21 ` Jan Kiszka
2005-11-22 10:44 ` Dmitry Adamushko
2005-11-22 10:51 ` Philippe Gerum
2005-11-22 11:56 ` Jan Kiszka
2005-11-22 19:12 ` Philippe Gerum
2005-11-22 20:27 ` Jan Kiszka [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=43837F37.8040406@domain.hid \
--to=kiszka@domain.hid \
--cc=rpm@xenomai.org \
--cc=xenomai@xenomai.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.