mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "jeff millar" <wa1hco@adelphia.net>
To: "Andrey Borzenkov" <arvidjaar@mail.ru>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.0-test4, psmouse doesn't autoload, CONFIG_SERIO doesn't module
Date: Tue, 2 Sep 2003 18:51:06 -0400	[thread overview]
Message-ID: <002f01c371a4$b7207a00$6401a8c0@wa1hco> (raw)
In-Reply-To: <E19uBS4-000AsR-00.arvidjaar-mail-ru@f17.mail.ru>

From: "Andrey Borzenkov" <arvidjaar@mail.ru>
> > 1. Why doesn't the PS/2 mouse autoload as a module?
> > Running 2.6.0-test4, psmouse doesn't autoload as a module.  Oddly,
neither
> > gpm nor X complains about the missing module, the mouse just doesn't
work.
> > But if I modprobe psmouse, the cursor starts moving.  I verified that
> > /dev/psaux uses char-major-10-1 and that it has an "alias
char-major-10-1
> > psaux" in modprobe.conf.
>
> because in 2.6 user-level programs do not speak with low-level hardware
> drivers anymore. psmouse feeds events to input midlayer that dispatches
> them to those handlers that expressed interest. And those handlers speak
> with user-level tools.
>
> /dev/psaux is an *emulated* ImPS mouse that is not related to any
> real hardware. It will convert events from _any_ mouse you have into
> PS/2 protocol for users but if there is no mouse it just sits there
> and waits.

> /dev/psaux is provided by mousemod not psmouse.

> In general there seems to be no way to load low-level input drivers
> on access because there is no instance that ever accesses them. And
> as it stands now there is not way to auto-load using some other means.
> So we are back in static configuration times ...

Ok, I guess.  But isn't there some module reference that can trigger the
install of psmouse?

> > 1. What does kmod send to modprobe?  From looking at modprobe.conf
apparently "char-major-x-y".
>
> only for misc devices. It is char-major-X for most others

> > 2. Does kmod send any other strings to modprobe?

> no.

> > 3. Documentation/kmod.txt says "passing the name (to modprobe) that was
> > requested", couldn't this be more explicit?

> what exactly do you mean?

Something like "...passing the name of the device in the form
'char-major-x-y' for misc devices and 'char-major-X' for others"

BTW, could kmod just pass the name of the file from the open() call?
Modprobe could look up the major-minor and/or users could create virtual
devices.  For example, I create a file /dev/my_psaux which is a symlink to
/dev/psaux, the name gets passed to modprobe.  modprobe looks it up and
finds that it's not a device file and looks for an alias, and finds psmouse,
loads it,...problem solved.

thanks for the info,

jeff


  reply	other threads:[~2003-09-02 22:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-02 13:44 "Andrey Borzenkov" 
2003-09-02 22:51 ` jeff millar [this message]
2003-09-03  9:15   ` "Andrey Borzenkov" 
2003-09-04  2:35     ` Resident Boxholder
  -- strict thread matches above, loose matches on Subject: below --
2003-09-02  2:34 jeff millar
2003-09-02 16:22 ` snpe

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='002f01c371a4$b7207a00$6401a8c0@wa1hco' \
    --to=wa1hco@adelphia.net \
    --cc=arvidjaar@mail.ru \
    --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®