mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: mohanlal jangir <mohanlal@samsung.com>
To: rakesh <raklfs@yahoo.com>, kernelnewbies@nl.linux.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: Implementation of events in Linux Kernel
Date: Wed, 14 Apr 2004 20:03:05 +0530	[thread overview]
Message-ID: <020e01c4222d$67440440$7f476c6b@sisodomain.com> (raw)
In-Reply-To: <20040414142410.17997.qmail@web20729.mail.yahoo.com>


----- Original Message -----
From: "rakesh" <raklfs@yahoo.com>
To: <kernelnewbies@nl.linux.org>
Cc: <linux-kernel@vger.kernel.org>
Sent: Wednesday, April 14, 2004 7:54 PM
Subject: Implementation of events in Linux Kernel


>
> Hi All,
>
> Please excuse me if this is not the right place to post this question.
>
>       I have an application which runs on MIPS with Embedded Linux. Iwant
to write a char driver . I have a Rx Task and an Interrupthandler for the
char driver which will let me know if anything comesat the chip level.

If you receive interrupt from device, you can establish an interrupt handler
for that. See function "request_irq". If you want a sleep/wakeup mechanism,
there are many ways of doing this in Linux kernel. One of them is using
interruptible_sleep_on/wake_up_interruptible.

Regards
Mohanlal

  Assuming its pSOS or other real time operating systems one ofhandling an
interrupt is sending an event to the Rx Task then Rx Taskwill read from the
whatever buffer it may be.       If I want to implement the same thing in
Linux at the kernellevel treating my driver as a module. How ( what system
call ) can Ipass an event to the task such that it receives the event and
readsfrom the buffer ?      One more question in general what are all the
various exceptionsor Traps I have to look while writing a Linux Device
Driver.Thanks in Advance for all your help.ThanksRakesh
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Tax Center - File online by April 15th


       reply	other threads:[~2004-04-14 14:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040414142410.17997.qmail@web20729.mail.yahoo.com>
2004-04-14 14:33 ` mohanlal jangir [this message]
2004-04-19  4:54 ` lvcreate -- ERROR "Cannot allocate memory" creating VGDA Shesha Sreenivasamurthy

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='020e01c4222d$67440440$7f476c6b@sisodomain.com' \
    --to=mohanlal@samsung.com \
    --cc=kernelnewbies@nl.linux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=raklfs@yahoo.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®