aboutsummaryrefslogtreecommitdiff
path: root/sbin/devd
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) fixes: Expand contraction.Ruslan Ermilov2003-05-171-1/+1
| | | | Notes: svn path=/head/; revision=115114
* Allow zero or more actions in an action list, rather than requiringWarner Losh2003-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) Notes: svn path=/head/; revision=115011
* sysctlbyname takes a size_t as its 5th argument, not a pointer.Warner Losh2003-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 Notes: svn path=/head/; revision=114541
* Create a new C++ header file called devd.hh which has all the classWarner Losh2003-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). Notes: svn path=/head/; revision=114086
* Update to use is_id_char() in the last patch. I should have done thisWarner Losh2003-04-261-2/+1
| | | | | | | before the last commit. Notes: svn path=/head/; revision=114084
* Make better use of the string type when parsing things. This switchesWarner Losh2003-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 Notes: svn path=/head/; revision=114081
* Change default to be 'process all events before calling daemon.'Warner Losh2003-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. Notes: svn path=/head/; revision=114000
* Kill debug printf that crept in my last commitWarner Losh2003-04-211-1/+0
| | | | Notes: svn path=/head/; revision=113805
* Implement a two new flags, and change the meaning of another one.Warner Losh2003-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. Notes: svn path=/head/; revision=113790
* Put an anti-foot-shooting measure in place. Set hw.bus.devctl_disableWarner Losh2003-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. Notes: svn path=/head/; revision=113787
* o Skip white space between variables better. This makesWarner Losh2003-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 Notes: svn path=/head/; revision=113785
* devd.conf already has the examples in the todo listWarner Losh2003-04-211-1/+0
| | | | Notes: svn path=/head/; revision=113782
* This can't obviously be cleaner than system headers.Ruslan Ermilov2003-04-011-1/+1
| | | | Notes: svn path=/head/; revision=112935
* mdoc(7) police: Revision.Ruslan Ermilov2003-03-032-24/+38
| | | | Notes: svn path=/head/; revision=111813
* The bugs section hasn't been true since before 5.0-RWarner Losh2003-02-141-3/+0
| | | | Notes: svn path=/head/; revision=110881
* devd bugs section is now OBEWarner Losh2003-02-141-3/+0
| | | | Notes: svn path=/head/; revision=110877
* These are OBE. devd.conf now lives in /etc.Warner Losh2003-01-092-126/+0
| | | | Notes: svn path=/head/; revision=108985
* Terminate the usage message with \n.Warner Losh2003-01-061-1/+1
| | | | | | | Submitted by: joe Notes: svn path=/head/; revision=108799
* MFp4: make it workWarner Losh2003-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 Notes: svn path=/head/; revision=108783
* devd not devddWarner Losh2003-01-061-1/+1
| | | | | | | submitted by: joe Notes: svn path=/head/; revision=108781
* english(4) police.Jens Schweikhardt2002-12-272-8/+8
| | | | Notes: svn path=/head/; revision=108317
* Latest snapshot of devd. This one adds re-matching and stringWarner Losh2002-12-182-17/+89
| | | | | | | expansion. Notes: svn path=/head/; revision=108014
* MFp4 (imp_freebsd branch): snapshot of devd work:Warner Losh2002-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) Notes: svn path=/head/; revision=107665
* Fixup FILES section to use proper width and to use a cross-reference toJohn Baldwin2002-11-181-2/+2
| | | | | | | devd(8). Notes: svn path=/head/; revision=107066
* Remove leading ^ from example of match line in vendor-supplied rules sinceJohn Baldwin2002-11-181-2/+2
| | | | | | | the ^ is implicit at the beginning of the expressions. Notes: svn path=/head/; revision=107065
* Add BUGS section and note departure of actual implementation from whatWarner Losh2002-11-182-0/+6
| | | | | | | is documented so the pioneers will know why it works the way it does. Notes: svn path=/head/; revision=107045
* Install devd.conf(5).Tim J. Robbins2002-11-141-1/+1
| | | | Notes: svn path=/head/; revision=106906
* Try to reword things a bit more to make it clearer.John Baldwin2002-11-131-3/+13
| | | | | | | Reviewed by: imp Notes: svn path=/head/; revision=106875
* - Fix some minor grammar and spelling nits.John Baldwin2002-11-131-10/+14
| | | | | | | | | | - Massage the wording in a few places. - Put .Nm on lines by itself so it renders correctly. Reviewed by: imp Notes: svn path=/head/; revision=106869
* devd. A daemon that hooks into the kernel's /dev/devctl to produceWarner Losh2002-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 Notes: svn path=/head/; revision=105573