From: Wolfgang Grandegger <wg@domain.hid>
To: rolandtollenaar@domain.hid
Cc: Xenomai-help@domain.hid
Subject: Re: [Xenomai-help] CAN rt_dev_recvfrom
Date: Thu, 01 Mar 2007 13:25:38 +0100 [thread overview]
Message-ID: <45E6C642.80801@domain.hid> (raw)
In-Reply-To: <45E6C2CA.5000404@domain.hid>
Roland Tollenaar wrote:
> Hi,
>
>>> Where can I find the buffer size option in the kernel config menu?
>>> What is the default size?
>>
>> On the first menu of the RT-Socket-CAN configuration options:
>>
>> config XENO_DRIVERS_CAN_RXBUF_SIZE
>> depends on XENO_DRIVERS_CAN
>> int "Size of receive ring buffers (must be 2^N)"
>> default 1024
>>
>> Note that the messages are stored in "packed" format.
>
> Does this mean that the buffer will store 1024 can_frame's ?
The size is usually in bytes. And as the messages are packed, the FIFO
can hold from 1024/5 to 1024/13 messages (without time-stamp).
> If yes (or even if no) when rt_dev_recv is called, does it place the
> last recieved message (youngest message) or the oldest (behave like a
> FIFO) into *Buf?
It is a FIFO.
Wolfgang.
prev parent reply other threads:[~2007-03-01 12:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-28 20:08 [Xenomai-help] CAN rt_dev_recvfrom roland Tollenaar
2007-02-28 20:59 ` Wolfgang Grandegger
2007-03-01 11:22 ` Roland Tollenaar
2007-03-01 11:32 ` Wolfgang Grandegger
2007-03-01 12:10 ` Roland Tollenaar
2007-03-01 12:25 ` Wolfgang Grandegger [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=45E6C642.80801@domain.hid \
--to=wg@domain.hid \
--cc=Xenomai-help@domain.hid \
--cc=rolandtollenaar@domain.hid \
/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.