mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: peter meng <mengsanshui@yahoo.com.cn>
To: linux-kernel@vger.kernel.org
Subject: Ask a question about major and minor number of keyboard driver .
Date: Fri, 20 Mar 2009 09:40:33 +0800 (CST)	[thread overview]
Message-ID: <768318.39103.qm@web15705.mail.cnb.yahoo.com> (raw)


Hi,

 Such as drivers/input/keyboard/neo1973kbd.c :

 input_dev->name = "Neo1973 Buttons";
 input_dev->phys = "neo1973kbd/input0";
 input_dev->id.bustype = BUS_HOST;

 As i understand , application will access /dev/input/neo1973kbd/input0 as input handler such as open(/dev/input/neo1973kbd/input0) .
 I want to know which minor number will be used by input0 , because event0 
 will use minor number 64 .
 Assume no minor number for neo1973kbd/input0 ,how the driver process open(/dev/input/neo1973kbd/input0) ? because no major and minor number related to it .
 

ls -l /dev/input/ 
crw-r----- 1 root root 13, 64 2009-03-20 08:54 event0


Thanks in Advanced .
Best Regards.
Peter Meng 




      

                 reply	other threads:[~2009-03-20  1:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=768318.39103.qm@web15705.mail.cnb.yahoo.com \
    --to=mengsanshui@yahoo.com.cn \
    --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®