summaryrefslogtreecommitdiffstats
path: root/sbin/devd
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) fixes.ru2004-07-071-1/+3
|
* Create a unix domain socket and write to it all the events that comeimp2004-07-012-14/+91
| | | | in over the socket.
* Parse the ! lines that will soon be coming from the kernel. These areimp2003-10-245-10/+48
| | | | | | | | | | a generalized notification mechanism for subsystems wishing to report events. Revieded by: njl # The kernel side seems like it might be causing panics for me, but should # be forthcoming shortly.
* fix typo: s/Instaed/Instead/rse2003-09-261-1/+1
|
* At imp's request, force devd to be statically compiled. This avoids thegordon2003-08-171-0/+2
| | | | | | | need for libstdc++ in /lib, and the generated binary is actually smaller statically linked than dynamically + sizeof(libstdc++). Additionally, devd doesn't use get*by*() which is one of the main motivations for dynamically linking your root partition anyway.
* Simplistic C comment re is wrong, use more correct oneimp2003-07-231-1/+1
|
* Remove old workaroundimp2003-07-231-3/+1
|
* Drop the pid file after we call the final daemon call. w/o -n wouldimp2003-07-051-2/+4
| | | | | | | give the wrong pid. Submitted by: ru and Lukas Ertl PR: 54113
* mdoc(7) fixes: Expand contraction.ru2003-05-171-1/+1
|
* Allow zero or more actions in an action list, rather than requiringimp2003-05-151-0/+3
| | | | | | | | | | | | | | | | | | | one or more actions in the list. This makes constructs like: attach 10 { // echo "Driver $device_name attached" }; to be accepted by the parser. It will be treated as if the user had entered: // attach 10 { // echo "Driver $device_name attached" // }; (eg totally ignored). Approved by: re@ (rwatson)
* sysctlbyname takes a size_t as its 5th argument, not a pointer.imp2003-05-021-1/+1
| | | | | | | However, since NULL was used, and this is C++, this error went undetected until g++ 3.3 somehow managed to whine about it. Reported by: obrien
* Create a new C++ header file called devd.hh which has all the classimp2003-04-263-101/+172
| | | | | | definitions in it. Begin to document the classes that we use, and how they interrelate (using comments that I can use with doxygen to automatically generate docs with).
* Update to use is_id_char() in the last patch. I should have done thisimp2003-04-261-2/+1
| | | | before the last commit.
* Make better use of the string type when parsing things. This switchesimp2003-04-261-28/+22
| | | | | | | | expand one from using a fixed buffer to using a string which dynamically allocates these things. Submitted by: green@ (against an earlier version of devd) Ignored for too long by: imp
* Change default to be 'process all events before calling daemon.'imp2003-04-251-2/+4
| | | | | | | | Also, put a small work around into devd to prevent a hang on boot this would cause because select used to return 2 rather than 0 for no evetnts due to a bug I fixed a few days ago in subr_bus.c. I'll remove this workaround May 7th. You have until then to upgrade your kernel if you want to run a new devd with an older kernel.
* Kill debug printf that crept in my last commitimp2003-04-211-1/+0
|
* Implement a two new flags, and change the meaning of another one.imp2003-04-212-14/+45
| | | | | | | | | | | | | | | 'd': now means don't do daemon(). 'D': Debug 'n': Don't wait to process all pending events before calling daemon. In the past, devd would call daemon immediately. However, this causes a race. If anything in the boot process depends on configuring the devices configured by devd, maybe they would be configured in time, maybe not. Now we don't call daemon until all pending events are processed, unless -n is specified. # -n is actually the default for a while due to the select(2) bug in devctl # that I just fixed to give people a chance to upgrade.
* Put an anti-foot-shooting measure in place. Set hw.bus.devctl_disableimp2003-04-211-0/+19
| | | | | | | | | to 0 when we startup. Print a warning in this case. This allows people that are playing with devd by hand to have something happen. Otherwise, it appears that devd isn't working because /dev/devctl is disabled and producing no events. Suggested by: peter on irc a long time ago.
* o Skip white space between variables better. This makesimp2003-04-211-6/+17
| | | | | | | | | | | 'a="b" c="d" at loc=1 on busN' properly set 'c' and process the rest of the stirng. Before it would ignore everything after variable 'a'. o Parse nomatch and other events differently. They are more different than the code allowed for, so we weren't properly parsing nomatch events. It appears this fixes some of the demand loading issues that I was having with devd. Noticed by: Gary Palmer
* devd.conf already has the examples in the todo listimp2003-04-211-1/+0
|
* This can't obviously be cleaner than system headers.ru2003-04-011-1/+1
|
* mdoc(7) police: Revision.ru2003-03-032-24/+38
|
* The bugs section hasn't been true since before 5.0-Rimp2003-02-141-3/+0
|
* devd bugs section is now OBEimp2003-02-141-3/+0
|
* These are OBE. devd.conf now lives in /etc.imp2003-01-092-126/+0
|
* Terminate the usage message with \n.imp2003-01-061-1/+1
| | | | Submitted by: joe
* MFp4: make it workimp2003-01-061-41/+181
| | | | | | | | | | | | | | o Expand variables correctly. o Set variables for each event. o rewrite event loop to execute the commands in the config file, rather than the hard wired generic command o better(?) debug when running -d o sort vectors of actions so that we just have to search for the first one to match rather than the best one that matches. o better attempts to clear all resources used on 'restart' o Remove now bogus comments MFC After: 1 centiyear
* devd not devddimp2003-01-061-1/+1
| | | | submitted by: joe
* english(4) police.schweikh2002-12-272-8/+8
|
* Latest snapshot of devd. This one adds re-matching and stringimp2002-12-182-17/+89
| | | | expansion.
* MFp4 (imp_freebsd branch): snapshot of devd work:imp2002-12-078-316/+701
| | | | | | | | | | | | o improve parsing and lexing o create data structures based on the parsed file now. o Still need to rewrite main loop and add regex (still uses hard coded devd-generic) o minor man page updates. # There should be one more commit before rc2 Approved by: re (blanket)
* Fixup FILES section to use proper width and to use a cross-reference tojhb2002-11-181-2/+2
| | | | devd(8).
* Remove leading ^ from example of match line in vendor-supplied rules sincejhb2002-11-181-2/+2
| | | | the ^ is implicit at the beginning of the expressions.
* Add BUGS section and note departure of actual implementation from whatimp2002-11-182-0/+6
| | | | is documented so the pioneers will know why it works the way it does.
* Install devd.conf(5).tjr2002-11-141-1/+1
|
* Try to reword things a bit more to make it clearer.jhb2002-11-131-3/+13
| | | | Reviewed by: imp
* - Fix some minor grammar and spelling nits.jhb2002-11-131-10/+14
| | | | | | | - Massage the wording in a few places. - Put .Nm on lines by itself so it renders correctly. Reviewed by: imp
* devd. A daemon that hooks into the kernel's /dev/devctl to produceimp2002-10-209-0/+852
arbitrary commands when devices come and go in the device tree (which is different than the /dev directory). This is an initial version. Much of the planned power isn't here. Instead of doing the full matching, we always run /etc/devd-generic. /etc/devd.generic will go away at some point, I think. I'm committing it in this early state so I can start getting feedback from early adapters. Approved by: re
OpenPOWER on IntegriCloud