From: Jan Kiszka <jan.kiszka@domain.hid>
To: Wolfgang Grandegger <wg@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] Re: iovec overwriting by CAN stack
Date: Fri, 30 Mar 2007 08:50:21 +0200 [thread overview]
Message-ID: <460CB32D.1040807@domain.hid> (raw)
In-Reply-To: <460CB1BD.60602@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1141 bytes --]
Wolfgang Grandegger wrote:
> Jan Kiszka wrote:
>> Hi Wolfgang,
>>
>> it's late, so I may have misread somecode, but don't you "update" the
>> iovec descriptors a user passes on send/recvmsg on return (namely
>> iovec_len)? I received some complaints about this /wrt to in-kernel CAN
>> stack usage.
>
> It's done here:
>
> http://www.rts.uni-hannover.de/xenomai/lxr/source/ksrc/drivers/can/rtcan_raw.c?v=SVN-trunk#881
>
> http://www.rts.uni-hannover.de/xenomai/lxr/source/ksrc/drivers/can/rtcan_raw.c?v=SVN-trunk#734
>
>
> I may have missed something. What are the real complaints? Is there a
> test program?
Not yet (will commit the related patch to our RACK likely later today).
It's simply sending frames while re-using the msg+iovec structs in a loop.
>
>> I always considered the same well-know behaviour of RTnet a bug, but now
>> I found your code is doing this systematically, also for user space
>> callers. Is this behaviour undefined or even required according POSIX or
>> whatever?
>
> I don't know, it's Sebastian's Kode.
>
Hmm, hope he will not say that he imitated RTnet...
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2007-03-30 6:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-30 0:59 [Xenomai-core] iovec overwriting by CAN stack Jan Kiszka
2007-03-30 6:44 ` [Xenomai-core] " Wolfgang Grandegger
2007-03-30 6:50 ` Jan Kiszka [this message]
2007-03-30 12:18 ` Sebastian Smolorz
2007-03-30 12:27 ` Jan Kiszka
2007-03-30 13:06 ` Sebastian Smolorz
2007-03-30 14:17 ` Jan Kiszka
2007-04-02 8:09 ` Sebastian Smolorz
2007-04-05 17:30 ` Jan Kiszka
2007-04-10 7:37 ` [Xenomai-core] " Sebastian Smolorz
2007-04-10 9:43 ` Jan Kiszka
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=460CB32D.1040807@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=wg@domain.hid \
--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.