kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Mouse driver
@ 2015-03-07  4:27 Ronit Halder
  2015-03-07  4:34 ` nick
  0 siblings, 1 reply; 7+ messages in thread
From: Ronit Halder @ 2015-03-07  4:27 UTC (permalink / raw)
  To: kernelnewbies

Hi,I want to write mouse driver for linux ( usb mouse). I am reading
"Linux device driver" and "Linux kernel development". But i don't how
to start writing the driver.
So,Please help.

Best regards,
Ronit.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Mouse driver
  2015-03-07  4:27 Mouse driver Ronit Halder
@ 2015-03-07  4:34 ` nick
       [not found]   ` <CACeEjSLORnMtw-xHem9kOkVeU9kmXFq=LTC+siOJTDSRXwmc9w@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: nick @ 2015-03-07  4:34 UTC (permalink / raw)
  To: kernelnewbies

Ronit,
What are your reasons for writing this driver? In addition if you have 
the kernel tree lying around look under drivers/input/mouse for mouse
drivers that are in production to help you understand how to write
one better.
Good Luck,
Nick 

On 2015-03-06 11:27 PM, Ronit Halder wrote:
> Hi,I want to write mouse driver for linux ( usb mouse). I am reading
> "Linux device driver" and "Linux kernel development". But i don't how
> to start writing the driver.
> So,Please help.
> 
> Best regards,
> Ronit.
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Mouse driver
       [not found]   ` <CACeEjSLORnMtw-xHem9kOkVeU9kmXFq=LTC+siOJTDSRXwmc9w@mail.gmail.com>
@ 2015-03-07  4:39     ` nick
  2015-03-08 21:51       ` Maxime Ripard
  0 siblings, 1 reply; 7+ messages in thread
From: nick @ 2015-03-07  4:39 UTC (permalink / raw)
  To: kernelnewbies



On 2015-03-06 11:36 PM, Ronit Halder wrote:
> This is my semester project and Thanks.
> 
Does it have to be a input driver? If you really want to impress your teacher and
get a better mark,try writing a basic network or usb driver.
Nick

> On Sat, Mar 7, 2015 at 10:04 AM, nick <xerofoify@gmail.com> wrote:
>> Ronit,
>> What are your reasons for writing this driver? In addition if you have
>> the kernel tree lying around look under drivers/input/mouse for mouse
>> drivers that are in production to help you understand how to write
>> one better.
>> Good Luck,
>> Nick
>>
>> On 2015-03-06 11:27 PM, Ronit Halder wrote:
>>> Hi,I want to write mouse driver for linux ( usb mouse). I am reading
>>> "Linux device driver" and "Linux kernel development". But i don't how
>>> to start writing the driver.
>>> So,Please help.
>>>
>>> Best regards,
>>> Ronit.
>>>
>>> _______________________________________________
>>> Kernelnewbies mailing list
>>> Kernelnewbies at kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Mouse driver
  2015-03-07  4:39     ` nick
@ 2015-03-08 21:51       ` Maxime Ripard
  2015-03-08 22:09         ` Nicholas Krause
  0 siblings, 1 reply; 7+ messages in thread
From: Maxime Ripard @ 2015-03-08 21:51 UTC (permalink / raw)
  To: kernelnewbies

Nick,

On Fri, Mar 06, 2015 at 11:39:21PM -0500, nick wrote:
> On 2015-03-06 11:36 PM, Ronit Halder wrote:
> > This is my semester project and Thanks.
>
> Does it have to be a input driver? If you really want to impress
> your teacher and get a better mark,try writing a basic network or
> usb driver.

Except that an USB or at networking driver is a few orders of
magnitude more difficult than an input driver.

While it would certainly be a wonderful achievement, it really is not
reasonable to suggest that on this list.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150308/2b9ec150/attachment.bin 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Mouse driver
  2015-03-08 21:51       ` Maxime Ripard
@ 2015-03-08 22:09         ` Nicholas Krause
  2015-03-09  1:12           ` Ronit Halder
  0 siblings, 1 reply; 7+ messages in thread
From: Nicholas Krause @ 2015-03-08 22:09 UTC (permalink / raw)
  To: kernelnewbies



On March 8, 2015 5:51:58 PM EDT, Maxime Ripard <maxime.ripard@free-electrons.com> wrote:
>Nick,
>
>On Fri, Mar 06, 2015 at 11:39:21PM -0500, nick wrote:
>> On 2015-03-06 11:36 PM, Ronit Halder wrote:
>> > This is my semester project and Thanks.
>>
>> Does it have to be a input driver? If you really want to impress
>> your teacher and get a better mark,try writing a basic network or
>> usb driver.
>
>Except that an USB or at networking driver is a few orders of
>magnitude more difficult than an input driver.
>
>While it would certainly be a wonderful achievement, it really is not
>reasonable to suggest that on this list.
>
>Maxime
It was only a suggestion.  I didn't realize that was impolite on the list. I was seeing if I could help him get a better mark as sometimes in my experience they get bonus marks for writing more difficult programs in this case,  more complex drivers. 
Sorry, 
Nick
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Mouse driver
  2015-03-08 22:09         ` Nicholas Krause
@ 2015-03-09  1:12           ` Ronit Halder
  2015-03-09  1:15             ` Nicholas Krause
  0 siblings, 1 reply; 7+ messages in thread
From: Ronit Halder @ 2015-03-09  1:12 UTC (permalink / raw)
  To: kernelnewbies

How to get the interrupt number for any device.

On Mon, Mar 9, 2015 at 3:39 AM, Nicholas Krause <xerofoify@gmail.com> wrote:

>
>
> On March 8, 2015 5:51:58 PM EDT, Maxime Ripard <
> maxime.ripard at free-electrons.com> wrote:
> >Nick,
> >
> >On Fri, Mar 06, 2015 at 11:39:21PM -0500, nick wrote:
> >> On 2015-03-06 11:36 PM, Ronit Halder wrote:
> >> > This is my semester project and Thanks.
> >>
> >> Does it have to be a input driver? If you really want to impress
> >> your teacher and get a better mark,try writing a basic network or
> >> usb driver.
> >
> >Except that an USB or at networking driver is a few orders of
> >magnitude more difficult than an input driver.
> >
> >While it would certainly be a wonderful achievement, it really is not
> >reasonable to suggest that on this list.
> >
> >Maxime
> It was only a suggestion.  I didn't realize that was impolite on the list.
> I was seeing if I could help him get a better mark as sometimes in my
> experience they get bonus marks for writing more difficult programs in this
> case,  more complex drivers.
> Sorry,
> Nick
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150309/e3ffe2fe/attachment.html 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Mouse driver
  2015-03-09  1:12           ` Ronit Halder
@ 2015-03-09  1:15             ` Nicholas Krause
  0 siblings, 0 replies; 7+ messages in thread
From: Nicholas Krause @ 2015-03-09  1:15 UTC (permalink / raw)
  To: kernelnewbies



On March 8, 2015 9:12:28 PM EDT, Ronit Halder <ronit.linux@gmail.com> wrote:
>How to get the interrupt number for any device.
The easiest way is to take a look for your device's id in lsusb and see if the interrupt number is there for your device. 
Nick
>
>On Mon, Mar 9, 2015 at 3:39 AM, Nicholas Krause <xerofoify@gmail.com>
>wrote:
>
>>
>>
>> On March 8, 2015 5:51:58 PM EDT, Maxime Ripard <
>> maxime.ripard at free-electrons.com> wrote:
>> >Nick,
>> >
>> >On Fri, Mar 06, 2015 at 11:39:21PM -0500, nick wrote:
>> >> On 2015-03-06 11:36 PM, Ronit Halder wrote:
>> >> > This is my semester project and Thanks.
>> >>
>> >> Does it have to be a input driver? If you really want to impress
>> >> your teacher and get a better mark,try writing a basic network or
>> >> usb driver.
>> >
>> >Except that an USB or at networking driver is a few orders of
>> >magnitude more difficult than an input driver.
>> >
>> >While it would certainly be a wonderful achievement, it really is
>not
>> >reasonable to suggest that on this list.
>> >
>> >Maxime
>> It was only a suggestion.  I didn't realize that was impolite on the
>list.
>> I was seeing if I could help him get a better mark as sometimes in my
>> experience they get bonus marks for writing more difficult programs
>in this
>> case,  more complex drivers.
>> Sorry,
>> Nick
>> --
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-03-09  1:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-07  4:27 Mouse driver Ronit Halder
2015-03-07  4:34 ` nick
     [not found]   ` <CACeEjSLORnMtw-xHem9kOkVeU9kmXFq=LTC+siOJTDSRXwmc9w@mail.gmail.com>
2015-03-07  4:39     ` nick
2015-03-08 21:51       ` Maxime Ripard
2015-03-08 22:09         ` Nicholas Krause
2015-03-09  1:12           ` Ronit Halder
2015-03-09  1:15             ` Nicholas Krause

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).