All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Anisha Kaul <anisha.kaul@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] unable to open serial port from a kernel module
Date: Wed, 11 Nov 2009 10:19:19 +0100	[thread overview]
Message-ID: <4AFA8197.7070005@domain.hid> (raw)
In-Reply-To: <200911111422.11402.anisha.kaul@domain.hid>

Anisha Kaul wrote:
> hi,
> 
> when i use rt_dev_open ("/dev/ttyS0", 0); from the function init_module () of 
> a self written kernel module, it returns -19 ! What must be the reason, can't 
> a file be opened from a kernel module ?

Please read documentation and examples more carefully: "rtdev0" is the
answer.

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux


  reply	other threads:[~2009-11-11  9:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-11  8:52 [Xenomai-help] unable to open serial port from a kernel module Anisha Kaul
2009-11-11  9:19 ` Jan Kiszka [this message]
2009-11-11 13:19   ` Anisha Kaul
2009-11-11 14:02   ` Anisha Kaul
2009-11-11 14:30     ` Stefan Kisdaroczi

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=4AFA8197.7070005@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=anisha.kaul@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.