* Re: [PATCH] Manpage for hotplug-ng
@ 2005-05-06 20:59 Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2005-05-06 20:59 UTC (permalink / raw)
To: linux-hotplug
On Sat, Feb 26, 2005 at 09:32:19PM +0100, Tobias Klauser wrote:
> Hi,
>
> As requested in the TODO file of hotplug-ng, here's a manpage for it.
> It mostly contains information from various other sources such as the
> manpage of the old hotplug package or Greg's article about hotplug on
> LWN (I hope that's OK with you). Please let me know if I did
> grammatical or technical mistakes and I'll gladly fix them. Also let
> me know if I missed some information which should be in there.
Sorry for the delay, I've now applied this to my tree.
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] Manpage for hotplug-ng
@ 2005-02-26 20:32 Tobias Klauser
0 siblings, 0 replies; 2+ messages in thread
From: Tobias Klauser @ 2005-02-26 20:32 UTC (permalink / raw)
To: linux-hotplug
Hi,
As requested in the TODO file of hotplug-ng, here's a manpage for it.
It mostly contains information from various other sources such as the
manpage of the old hotplug package or Greg's article about hotplug on
LWN (I hope that's OK with you). Please let me know if I did
grammatical or technical mistakes and I'll gladly fix them. Also let
me know if I missed some information which should be in there.
Thanks, Tobias
Signed-off-by: Tobias Klauser <tklauser@access.unizh.ch>
--- hotplug-ng-001.orig/hotplug.8 1970-01-01 01:00:00.000000000 +0100
+++ hotplug-ng-001/hotplug.8 2005-02-26 16:40:13.853608024 +0100
@@ -0,0 +1,87 @@
+.TH HOTPLUG 8 "February 2005" "" "Linux Programmer's Manual"
+.SH NAME
+hotplug \- Linux hotplugging support tools
+.SH SYNOPSIS
+.B hotplug
+.I NAME
+.SH DESCRIPTION
+.B hotplug
+is a program which is used by the Linux kernel to notify user mode
+software when some significant (usually hardware-related) events take
+place. An example is when a USB or Cardbus device has just been
+plugged in. This is useful for automatically loading and setting up
+drivers, packaged either as kernel modules or as user mode programs.
+.P
+The hotplug program path name is registered in
+.IR /proc/sys/kernel/hotplug
+and is normally set to
+.IR /sbin/hotplug .
+.P
+This version of hotplug, also refered to as
+.B hotplug-ng
+is a complete rewrite of the old shell-scripts
+written in C code. It currently provides the following features:
+.P
+\- a /sbin/hotplug multiplexer. Works identical to the existing
+ bash /sbin/hotplug.
+.P
+\- autoload programs for usb, scsi, ieee1394, and pci modules.
+ These programs determine what module needs to be loaded when
+ the kernel emits a hotplug event for these types of devices.
+ This works just like the existing linux-hotplug scripts, with a
+ few exceptions.
+.SH ENVIRONMENT
+When the kernel finds a new device and registers it with sysfs, a
+hotplug event is generated that describes the new device in a bus
+specific manner through a number of different environment variables.
+The following variables are set by the kernel and read by the
+.B hotplug
+program:
+.TP
+.B ACTION
+.IR add " or " remove
+signifies the addition or the removal of a device.
+.P
+Other variables are set depending on the type of the device which was
+hotplugged:
+.TP
+.B PRODUCT, TYPE, INTERFACE
+Set for USB devices.
+.TP
+.B DEVPATH
+Set for SCSI devices.
+.TP
+.B PCI_ID, PCI_SUBSYS_ID, PCI_CLASS
+Set for PCI devices.
+.TP
+.B VENDOR_ID, MODEL_ID, SPECIFIER_ID, VERSION
+Set for IEEE1394 devices.
+.P
+The
+.B hotplug
+helpers split those environment variables apart into individual
+numbers, and then search the /lib/modules/KERNEL_VERSION/module.*map
+files for the proper matching module for this device. These mapfiles
+are created by the
+.B depmod
+program.
+.IR
+.SH FILES
+.nf
+/proc/sys/kernel/hotplug specifies the hotplug program path
+/sbin/hotplug hotplug program (default path name)
+/etc/hotplug/* hotplug files
+.fi
+.SH SEE ALSO
+.BR udev (8),
+.BR depmod (8)
+.PP
+.B Web resources:
+.nf
+.IR http://linux\-hotplug.sourceforge.net/
+.IR http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
+.IR http://lwn.net/Articles/123932/
+.fi
+.SH AUTHORS
+.B hotplug-ng
+was developed by Greg Kroah-Hartman <greg@kroah.com>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-06 20:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-06 20:59 [PATCH] Manpage for hotplug-ng Greg KH
-- strict thread matches above, loose matches on Subject: below --
2005-02-26 20:32 Tobias Klauser
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).