Linux Hotplug development
 help / color / mirror / Atom feed
From: Tobias Klauser <tklauser@access.unizh.ch>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] Manpage for hotplug-ng
Date: Sat, 26 Feb 2005 20:32:19 +0000	[thread overview]
Message-ID: <20050226203219.GB1155@neon> (raw)

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

             reply	other threads:[~2005-02-26 20:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-26 20:32 Tobias Klauser [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-05-06 20:59 [PATCH] Manpage for hotplug-ng 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=20050226203219.GB1155@neon \
    --to=tklauser@access.unizh.ch \
    --cc=linux-hotplug@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