public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: "Mukund JB." <mukundjb@esntechnologies.co.in>
Cc: linux-kernel@vger.kernel.org
Subject: Re: clarity on kref needed.
Date: Wed, 18 Jan 2006 21:33:03 -0800	[thread overview]
Message-ID: <20060119053303.GA21467@kroah.com> (raw)
In-Reply-To: <3AEC1E10243A314391FE9C01CD65429B28BF15@mail.esn.co.in>

On Thu, Jan 19, 2006 at 10:35:37AM +0530, Mukund JB. wrote:
> 
> 
> > -----Original Message-----
> > From: Greg KH [mailto:greg@kroah.com]
> > Sent: Thursday, January 19, 2006 10:33 AM
> > To: Mukund JB.
> > Cc: linux-kernel@vger.kernel.org
> > Subject: Re: clarity on kref needed.
> > 
> > 
> > On Thu, Jan 19, 2006 at 10:15:51AM +0530, Mukund JB. wrote:
> > > 
> > > > > I have gone through kref and am planning to implement then 
> > > > in my usb driver.
> > > > 
> > > > What kind of usb driver?
> > > It is a finger print authentication USB driver. it doesn ot do the
> > > authgentication but transports data to the application which really
> > > does some processing.
> > 
> > You shouldn't need a kernel driver for this, it can be done 
> > in userspace
> > with libusb/usbfs, right?
> 
> I mean I will register a char driver. I will just write a simple char
> kernel module to read data from the USB device and zero copy it to the
> userspace application. I guess that is the minimum work we need to do.

You can do that from userspace with libusb/usbfs with no kernel driver
needed.  Why not do that instead?

> Is there any other way using libusb/usbfs in which we can do this
> without a need of USB kernel driver?

Yes, use libusb/usbfs :)

> > > No, I did not find any Documentation/kref.txt.
> > > But I have read about kred in the link below:
> > > 
> > http://developer.osdl.org/dev/robustmutexes/src/fusyn.hg/Docum
> entation/kref.txt
> > >
> > >Is kref depricated because I find nothing related to it in linux/Documentation/?
> 
> > What kernel version are you looking at?  Look in the kernel source tree
> > from kernel.org.  What kernel tree are you building your driver against.
> 
> I am planning it for 2.6.11.12.

That's a pretty old kernel version, why not use the latest version?

thanks,

greg k-h

  reply	other threads:[~2006-01-19  5:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-19  5:05 clarity on kref needed Mukund JB.
2006-01-19  5:33 ` Greg KH [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-01-19  7:00 Mukund JB.
2006-01-19 15:55 ` Greg KH
2006-01-19  4:45 Mukund JB.
2006-01-19  5:03 ` Greg KH
2006-01-18  6:57 Mukund JB.
2006-01-18 15:51 ` Greg KH

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=20060119053303.GA21467@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mukundjb@esntechnologies.co.in \
    /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