All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Bachman Kharazmi <bahkha@domain.hid>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] rtdm driver development
Date: Sun, 30 Sep 2007 17:51:26 +0200	[thread overview]
Message-ID: <46FFC5FE.5080406@domain.hid> (raw)
In-Reply-To: <1ce16a2c0709261252o67cebde3q8cf03a0d21a27288@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]

Bachman Kharazmi wrote:
> Hi
> I've implemented a ringbuffer which will buffer strings between a
> pipe-read-task=>[buffer]=>rtdm-rtserial-writetask
> 
> The buffer has been implemented in userland and it works.
> But in kernelspace (everything in a loaded in a kernel-module) things
> doesn't work. It's the put(token) which doesn't work.
> The function is put(char* c){ ... }
> 
> I've heard that there's an address difference. But how do I handle that?
> 
> http://www.xenomai.org/documentation/trunk/html/api/group__util.html#g9ce418051ccb7dd2366128efb8674262
> is rtdm_strncpy_from_user() something I should use?
> 
> exactlly what is: rtdm_user_info_t *  else than a pointer?
> Where do I declare it? There's no clickable link in the api for that that type..
> 
> The description sais: "User information pointer as passed to the
> invoked device operation handler"
> ...

Please have a look at xenomai/examples/rtdm/driver-api. Those tutorial
may give you some ideas. Feel free to suggest better descriptions of
that field above.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

  reply	other threads:[~2007-09-30 15:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-26 19:52 [Xenomai-help] rtdm driver development Bachman Kharazmi
2007-09-30 15:51 ` Jan Kiszka [this message]
2007-09-30 16:23   ` Bachman Kharazmi
2007-09-30 18:11     ` 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=46FFC5FE.5080406@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=bahkha@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.