mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Tvrtko A. Uršulin" <tvrtko@croadria.com>
To: "Suresh Subramanian" <Suresh.Subramanian@lntinfotech.com>,
	linux-kernel@vger.kernel.org
Subject: Re: Problems in Device Driver Development
Date: Thu, 16 Oct 2003 12:19:23 +0200	[thread overview]
Message-ID: <200310161219.23803.tvrtko@croadria.com> (raw)
In-Reply-To: <OF7B0779CA.CA76EC51-ON65256DC1.002FABA8@lntinfotech.com>


> 1.   We are not able to use copy_to_user() a chunk of memory from 'write'
> function of the device driver. The pointer in the user space is passed to
> the kernel space through the 'ioctl' function of the device driver.

I am sure you get some return value from that function wich tells you what the 
problem is...

> 2.    We are not able to send a signal using kill_fasync() from within a
> kernel thread, to an user space process. The problem we face when we do
> this is that we get an OOPS message. I tried hard to decode this message,
> but in vain. So we came to the conclusion that i cannot send a signal from
> within the kernel thread using kill_fasync to a process that is running in
> the user space. Am i right in my conclusion, if not what should i do to
> make it possible.
>
> 3.   Similar to problem numbered 2, we face same problems in doing with
> 'tasklets'.

kill_fasync() works just fine if used properly.

Try to find Linux Device Drivers 2nd edition online book, it can explain this 
basic question to you.


      reply	other threads:[~2003-10-16 10:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-16  8:45 Suresh Subramanian
2003-10-16 10:19 ` Tvrtko A. Uršulin [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=200310161219.23803.tvrtko@croadria.com \
    --to=tvrtko@croadria.com \
    --cc=Suresh.Subramanian@lntinfotech.com \
    --cc=linux-kernel@vger.kernel.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 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®