aboutsummaryrefslogtreecommitdiff
path: root/sbin/devd
Commit message (Collapse)AuthorAgeFilesLines
* devd.conf: Remove support for coldsyncCeri Davies2021-05-071-13/+0
| | | | | | | | | | The coldsync port was removed in 2012. The last stable release of coldsync was issued in 2002. Let's get rid of it. PR: 255051 Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30100
* devd.conf: TypoCeri Davies2021-05-071-1/+1
| | | | | PR: 255051 MFC after: 3 days
* devd.conf(5): Fix a mandoc related issueGordon Bergling2020-12-191-3/+3
| | | | | | | | | - sections out of conventional order: Sh SEE ALSO MFC after: 1 week Notes: svn path=/head/; revision=368800
* Prefer Em to Ar for emphasisWarner Losh2020-11-231-6/+6
| | | | | | | | | Em is better than Ar if all we want to do is underline the text. Submitted by: yuripv@ Notes: svn path=/head/; revision=367963
* Document the rather suprising behavior with ' inside action rules.Warner Losh2020-10-131-1/+57
| | | | | | | | | | To prevent issues with odd shell characters appearing in, a surprising shell feature is used. Document it and a workaround for it. Differential Revision: https://reviews.freebsd.org/D26723 Notes: svn path=/head/; revision=366661
* Remove gratuitous use of '' around argumentsWarner Losh2020-10-091-1/+1
| | | | | | | | There's no need to use ' here, so remove it. This use causes no problems, but is a bad example. Notes: svn path=/head/; revision=366579
* Avoid using single quotes in arguments to logger.Warner Losh2020-10-091-12/+12
| | | | | | | | | | | | | Single quotes interfere with the workaround put in with r335753 and aren't necessary in this case. I believe that all the underling issues with r335753 have been corrected, but need to do more extensive followup before reverting it as a bad idea. PR: 240411 MFC After: 2 days (to give it time to get into 12.2) Notes: svn path=/head/; revision=366578
* devd.conf(5): Bugfix for an issue reported by mandocGordon Bergling2020-10-031-1/+1
| | | | | | | | | - whitespace at end of input line MFC after: 1 week Notes: svn path=/head/; revision=366405
* Sort IFNET alphabeticallyWarner Losh2020-08-311-19/+18
| | | | Notes: svn path=/head/; revision=365017
* Add documentation for ETHERNET events.Warner Losh2020-08-311-0/+8
| | | | Notes: svn path=/head/; revision=365016
* Change the resume notification event from 'kern' to 'kernel'Warner Losh2020-08-241-0/+4
| | | | | | | | | | | | We have both a system of 'kern' and of 'kernel'. Prefer the latter and convert this notification to use 'kernel' instead of 'kern'. As a transition period, continue to also generate the 'kern' notification until sometime after FreeBSD 13 is branched. MFC After: 3 days Notes: svn path=/head/; revision=364725
* Document the VFS FS eventsWarner Losh2020-08-191-0/+14
| | | | | | | | | | | | | | | | | | | MOUNT notifies when a filesystem is mounted REMOUNT notifies when a filesystem is mounted again UNMOUNT notifies when a filesystem is unmounted These events are asynchronous to the actual state of the event (though the data is recorded at a time when it is stable). The mount event is reported after the filesystem is mounted. However, in the interim it may be unmounted by another agent. Likewise, umount is called just before the mountpoint is finished tearing down. It may be remounted (or maybe if the process scheduling is wonky and devd gets to run before the last few steps are complete). Sponsored by: Netflix Diffential Revision: https://reviews.freebsd.org/D25969 Notes: svn path=/head/; revision=364403
* Three typos:Warner Losh2020-08-191-2/+2
| | | | | | | | | | | | Amiga is a proper noun Condition is traditionally spelled starting with 'c' Some, but not all, of the over/under-voltage instances were hyphenated. Since they are all adverb phrases, they all need to be hyphenated. Pointy hat: imp Notes: svn path=/head/; revision=364370
* Fix two typos.Warner Losh2020-08-181-2/+2
| | | | | | | | Submitted by: rpokala@ MFC After: 3 days Notes: svn path=/head/; revision=364364
* Document the ZFS events as best I can. These are not well documented.Warner Losh2020-08-181-0/+11
| | | | | | | MFC After: 3 days Notes: svn path=/head/; revision=364363
* Document the AEON subsystem for the Amiga's power button.Warner Losh2020-08-181-0/+6
| | | | | | | MFC After: 3 days Notes: svn path=/head/; revision=364362
* Document the PMU systemWarner Losh2020-08-181-1/+73
| | | | | | | | | | | The pmu(4) and adb(4) drivers on powerpc generate PMU events. Document them. The allwinner power modules also generate these events. Document those as well. MFC After: 3 days Notes: svn path=/head/; revision=364361
* GEOM::rotation_rate changes are also signaled via devctl.Warner Losh2020-08-181-0/+2
| | | | | | | MFC After: 3 days Notes: svn path=/head/; revision=364360
* Move the possible event types into a column table to make it easier to read.Warner Losh2020-08-181-139/+97
| | | | | | | | | | | | Sort system type alphabetically. Remove some commas that aren't in the devd notification messages. MFC After: 3 days Reviewed by: 0mp (earlier versions), jhb (useful feedback on earlier versions) Differential Revision: https://reviews.freebsd.org/D26105 Notes: svn path=/head/; revision=364359
* Modernize a bit.Warner Losh2020-08-181-14/+8
| | | | | | | | | Remove PC Card specific information. It's of little value these days and on the way out after most of its drivers have been removed. Use iwn instead of wi device. Notes: svn path=/head/; revision=364335
* Remove old devd rules for ActiveWire and Entrega Serial DB25Mateusz Piotrowski2020-07-161-18/+0
| | | | | | | | | | | | Those rules have been broken at least since 8-STABLE, when the port providing the ezdownload binary was removed (misc/ezload). Reviewed by: kevans, imp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D25686 Notes: svn path=/head/; revision=363248
* Add missing "ereport." prefixes of ZFS events.Alexander Motin2019-12-181-9/+9
| | | | | | | | | | | I was unable to find time when those were working. I think they have been broken for at least 5 years or even longer. Discussed with: avg@ MFC after: 1 month Notes: svn path=/head/; revision=355884
* Fix $() handling, broken since the beginning at r108014.Alexander Motin2019-12-131-3/+3
| | | | | | | | | | | Due to off-by-one error in brackets counting it consumed the rest of the string, preventing later variables expansions. MFC after: 2 weeks Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=355718
* Regularize my copyright noticeWarner Losh2019-12-047-14/+7
| | | | | | | | | | | | o Remove All Rights Reserved from my notices o imp@FreeBSD.org everywhere o regularize punctiation, eliminate date ranges o Make sure that it's clear that I don't claim All Rights reserved by listing All Rights Reserved on same line as other copyright holders (but not me). Other such holders are also listed last where it's clear. Notes: svn path=/head/; revision=355394
* Stop linking to libl by specifying we do not need yywrapBaptiste Daroussin2019-09-102-1/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=352130
* pkgbase: Create a FreeBSD-utilities package and make it the default oneEmmanuel Vadot2019-09-051-1/+1
| | | | | | | | | | | | | The default package use to be FreeBSD-runtime but it should only contain binaries and libs enough to boot to single user and repair the system, it is also very handy to have a package that can be tranform to a small mfsroot. So create a new package named FreeBSD-utilities and make it the default one. Also move a few binaries and lib into this package when it make sense. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21506 Notes: svn path=/head/; revision=351858
* acpi_dock(4): Notify devd(8) on dock status change.Mark Johnston2019-05-311-1/+3
| | | | | | | | | PR: 238138 Submitted by: Muhammad Kaisar Arkhan <hi@yukiisbo.red> MFC after: 2 weeks Notes: svn path=/head/; revision=348459
* Introduce new event SIZECHANGE within GEOM system to inform about GEOMPawel Jakub Dawidek2019-03-301-3/+7
| | | | | | | | | | | | | providers mediasize changes. While here, use GEOM nomenclature to describe providers instead of calling them device nodes. Obtained from: Fudo Security Tested in: AWS Notes: svn path=/head/; revision=345727
* devd.conf(5): simplify regexAndriy Voskoboinyk2019-01-271-1/+1
| | | | | | | | Submitted by: Helge Oldach <freebsd@oldach.net> MFC after: 5 days Notes: svn path=/head/; revision=343497
* Fix duplicate wpa_supplicant(8) / hostapd(8) startup with devd(8)Andriy Voskoboinyk2019-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Do not invoke 'wlan_up' function from devd(8) on interface creation event (an example to create such event: 'ifconfig wlan0 create wlandev rtwn0'); they're typically produced during 'service netif (re)start' and result in duplicate interface initialization. From the user side if WPA option is used, this result in messages like: - /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant or - wpa_supplicant already running? (pid=xxxx). (for HOSTAP interfaces this race may result in startup failure). As a side effect, wpa_supplicant(8) / hostapd(8) will not be invoked when new wlan(4) interface is created manually and corresponding configuration for it is present in rc.conf(5). This change does not affect device attach / removal events. MFC after: 5 days Notes: svn path=/head/; revision=343249
* devd.conf(5): add otus(4) into wifi-driver-regexAndriy Voskoboinyk2019-01-211-2/+2
| | | | | | | MFC after: 5 days Notes: svn path=/head/; revision=343244
* Further research shows usbdump(8) is what we should point people atWarner Losh2018-11-021-2/+2
| | | | | | | rather than tcpdump for usb traffic capture. Notes: svn path=/head/; revision=340088
* Catch up with the SCSI device removal. We should likely review why weWarner Losh2018-11-021-3/+2
| | | | | | | even have this. Notes: svn path=/head/; revision=340087
* Document r226775: tell why we omit usbus[0-9]+Warner Losh2018-11-021-1/+3
| | | | | | | | | | tcpdump can capture packet traces from the usb bus. usbus[0-9] are registered as ifnet devices so this can work. When these devices come up, devd was trying to run pccard_ether on those interfaces, which didn't exist and generated an error. Notes: svn path=/head/; revision=340086
* We don't need shell protection for when we're expanding matches.Warner Losh2018-09-222-4/+4
| | | | | | | | | | | | Don't add it. This should fix when we do regepx matches against variables we've set and fix wifi bring up. PR: 231441 Approved by: re@ (kib) Differential Revision: https://reviews.freebsd.org/D17267 Notes: svn path=/head/; revision=338888
* Move all devd related configs to sbin/devd/Brad Davis2018-08-219-0/+900
| | | | | | | | | | | This helps with pkgbase as it switches these to using CONFS so they are properly tagged as config files. Approved by: will (mentor), imp Differential Revision: https://reviews.freebsd.org/D16781 Notes: svn path=/head/; revision=338144
* Revert "devd: use C++ style casts"Eitan Adler2018-07-291-6/+6
| | | | | | | | It seems that nullptr is not yet supported by all compilers used by FreeBSD. :( Notes: svn path=/head/; revision=336877
* devd: use C++ style castsEitan Adler2018-07-291-6/+6
| | | | Notes: svn path=/head/; revision=336867
* devd: use static where possibleEitan Adler2018-07-291-4/+4
| | | | Notes: svn path=/head/; revision=336866
* Document kernel/signal/crashdump devd(8) notification.Edward Tomasz Napierala2018-07-201-2/+17
| | | | | | | | | | Discussed with: kib@ MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D16323 Notes: svn path=/head/; revision=336549
* Consistently use full stops.Edward Tomasz Napierala2018-07-181-19/+19
| | | | | | | | MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=336459
* We're not, yet, at C++11 capable on all our plaforms.Warner Losh2018-06-281-1/+6
| | | | | | | | | | Use a possibly slower, but C++98 compatibe way to iterate through the string. Noticed by: g++ 4.2.1 and Mark Millard Notes: svn path=/head/; revision=335756
* Safely quote all variable expansions.Warner Losh2018-06-272-3/+27
| | | | | | | | | | | | When expanding a variable set by a message from the kernel, safely quote all arguments expanded when creating a command line for the shell. Reviewd by: Shawn Webb, Oliver Pinter, brd@ Sponsored by: Netflix Notes: svn path=/head/; revision=335753
* devd: drop WARNS back down to 3 until 6 actually works with GCCMatt Macy2018-05-241-0/+1
| | | | Notes: svn path=/head/; revision=334126
* devd: Move variable declaration to headerEitan Adler2018-05-233-2/+1
| | | | | | | Reminder by: imp Notes: svn path=/head/; revision=334095
* devd: Unbreak buildEitan Adler2018-05-231-2/+1
| | | | | | | | | | | | I'm not quite sure why this wasn't caught before. Most likely due to some generated file not being properly cleaned. Fix build by just hiding the warnings that `-i` was supposed to fix. Tested with clang, gcc9, gcc7 Notes: svn path=/head/; revision=334086
* devd: allow build to complete using g++Eitan Adler2018-05-231-0/+2
| | | | Notes: svn path=/head/; revision=334079
* devd: compile at WARNS=6Eitan Adler2018-05-233-6/+7
| | | | | | | Verified with "make universe TARGETS='amd64 arm arm64 i386 sparc64'" Notes: svn path=/head/; revision=334078
* devd: correct two warningsEitan Adler2018-05-232-2/+2
| | | | | | | | - catching a polymorphic type by value - "output between 16 and 95 bytes into a destination of size 80" Notes: svn path=/head/; revision=334077
* Remove support for FDDI and token ring media types in userland utilities.Brooks Davis2018-04-161-2/+0
| | | | | | | | | Reviewed by: kib Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D15077 Notes: svn path=/head/; revision=332630