from small one page howto to huge articles all in one place
 

search text in:





Poll
Which linux distribution do you use?







poll results



Last additions:
Disable Anti-Aliasing fonts

Disable Anti-Aliasing fonts

words:

186

views:

7663

userrating:

no votes yet


May 25th. 2007:
Words

491

Views

8878

why adblockers are bad


handy one-liners for sed (Unix stream editor)
Tutorial:

handy one-liners for sed (Unix stream editor)

words:

4078

views:

23805

userrating:

no votes yet


rotating apache logfiles with cronolog

rotating apache logfiles with cronolog

words:

294

views:

9111

userrating:

no votes yet


Druckversion
You are here: manpages

devfsd.conf

Section: devfsd (5)
Updated: 1.3.21
Index Return to Main Contents
 

NAME

/etc/devfsd.conf - the main configuration file for devfsd.

 

FORMAT

The main documentation for the format is in devfsd(8).

 

EXAMPLES

Here are some examples of the most common usage:

Compatibility entries, the following will create symbolic links from /dev/misc/device to /dev/device on node registration and remove them on unregistration:

REGISTER misc MKOLDCOMPAT

UNREGISTER misc RMOLDCOMPAT

The following means to ignore any REGISTER or CHANGE entries occurring later in the file for devices matching the regex ^pt[sy]/.*:

REGISTER               ^pt[sy]/.*              IGNORE

CHANGE         ^pt[sy]/.*              IGNORE

CREATE         ^pt[sy]/.*              IGNORE

This runs the partx command to tell the kernel about the partitioning of an IDE or SCSI hard disk when one of the partitions is accessed for the first time. Notice the use of regular expression substituation in the command "\1", corresponding to the first set of parentheses in the regular expression being matched.

LOOKUP ^((ide|scsi)/host[0-9]+/bus[0-9]+/target[0-9]+/lun[0-9]+)/part[0-9]+$ EXECUTE /sbin/partx -a $mntpnt/\1/disc

This calls the GLOBAL function to create a symlink from /dev/tts/0 to /dev/ttyS0 and also to /dev/modem, the links will be removed at device unregistration time. The order of link creation is the reverse of the order in the config file. Typically the GLOBAL functions are in libc. Note how the mksymlink function is being used, rather than the symlink function from libc. The mksymlink function will create parent directories as required, and will not generate a failure code if the symlink already exists.

REGISTER ^tts/0$ CFUNCTION GLOBAL mksymlink $devname modem

REGISTER ^tts/3$ CFUNCTION GLOBAL mksymlink $devname ttyS0

UNREGISTER ^tts/0$ CFUNCTION GLOBAL unlink modem

UNREGISTER ^tts/3$ CFUNCTION GLOBAL unlink ttyS0

The other use of CFUNCTION and MFUNCTION is to call a function in a shared object that devfsd will load. See the examples directory for code for some shared objects.

 

SEE ALSO

devfsd(8)


 

Index

NAME
FORMAT
EXAMPLES
SEE ALSO

Please read "Why adblockers are bad". Ärger mit Freenet.de



to the forum.
:
:
other Ads
Stellenangebote
Stellenangebote
für Fach- und
Führungskräfte
www.nachoben.com
Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
FeedCollector
Combine various newsfeeds to one customized webpage
www.feedcollector.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004 S&P Softwaredesign
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 33.8 ms
system status display