History log of /freebsd-current/sbin/devd/devd.hh
Revision Date Author Comments
# b3e76948 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# f86e6000 04-Dec-2019 Warner Losh <imp@FreeBSD.org>

Regularize my copyright notice

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.


# 6577e8c4 22-Sep-2018 Warner Losh <imp@FreeBSD.org>

We don't need shell protection for when we're expanding matches.
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


# 54aa4076 27-Jun-2018 Warner Losh <imp@FreeBSD.org>

Safely quote all variable expansions.

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


# 7548968a 25-Jan-2018 Eitan Adler <eadler@FreeBSD.org>

devd: readd virtual

- my C++ knowledge is old and rusty. re-add virtual


# 510a8c88 25-Jan-2018 Eitan Adler <eadler@FreeBSD.org>

devd: minor nits

- mark usage as noreturn
- config does not need a virtual destructor


# 1de7b4b8 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

various: general adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.


# 416823b1 24-Mar-2017 Warner Losh <imp@FreeBSD.org>

Use a more stream-lined version of fix_value.

Submitted by: ian@


# 192af3b7 22-Mar-2017 Warner Losh <imp@FreeBSD.org>

Implement quote escaping. String values may now contain " if you
it is preceded by \.

foo="I \"like\" C++"

gives the value 'I "like" C++' to the variable 'foo'. If a character
other than " follows the \, both the \ and that character are passed
through.

Differential Revision: https://reviews.freebsd.org/D6286
Sponsored by: Netflix


# 1d9bf149 03-Mar-2013 Eitan Adler <eadler@FreeBSD.org>

devd: Remove unnecessary empty default constructors.

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)


# 012148ab 03-Mar-2013 Eitan Adler <eadler@FreeBSD.org>

devd: Remove empty virtual destructor from class, which has noch subclasses.

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)


# 6d58c721 03-Mar-2013 Eitan Adler <eadler@FreeBSD.org>

devd: Use the standard constructor of std::string instead of string("").

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)


# 11fd1366 03-Mar-2013 Eitan Adler <eadler@FreeBSD.org>

Constify where possible.

Approved by: cperciva (mentor)


# 5dfc0f6c 30-Jan-2013 Ian Lepore <ian@FreeBSD.org>

Improve devd startup time, by tweaking some string handling routines that are
heavily used when parsing config files. Mostly these changes avoid making
temporary copies of the strings, and avoid doing byte at a time append
operations, on the most-used code path.

On a 1.2 GHz ARM processor this reduces the time to parse the config files
from 13 to 6 seconds.

Reviewed by: imp
Approved by: cognet (mentor)


# c3fa0037 05-Dec-2012 Eitan Adler <eadler@FreeBSD.org>

Prefer the use of initalizer lists to ctor assignment.

Approved by: cperciva
MFC after: 2 weeks


# ef370346 05-Dec-2012 Eitan Adler <eadler@FreeBSD.org>

Constify where possible

Approved by: cperciva
MFC after: 2 weeks


# b884d5e8 16-Dec-2011 Dimitry Andric <dim@FreeBSD.org>

In sbin/devd/devd.h, 'event_proc' and 'eps' are declared as structs. In
devd.hh, there are redeclared as classes. Fix the inconsistency.

MFC after: 1 week


# 0321b694 25-Oct-2011 Hiroki Sato <hrs@FreeBSD.org>

- Add support for a "!" character in regex matching in devd(8). It inverts
the logic (true/false) of the matching.

- Add "!usbus[0-9]+" to IFNET ATTACH notification handler in the default
devd.conf to prevent rc.d/netif from running when usbus[0-9]+ is attached.

Reviewed by: imp


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# b8f92ce4 28-Jun-2010 Warner Losh <imp@FreeBSD.org>

Expand system into my_system, and add the necessary tidyness that we
need. Close the pidfile. Then close all descriptors >= 3 to avoid
information leakage to children.

This solves the problem of not being able to restart devd when you
have, for example, a dhclient forked to configure your network...

MFC after: 3 days


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# ec4a9b7c 20-Dec-2007 Warner Losh <imp@FreeBSD.org>

Minor initialization change to not trigger bogus gcc warning about
passing literal strings to the constructors of string.


# 1a0cc6b1 30-Jan-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Use pidfile(3).

OK'ed by: imp


# cd70782b 09-Jul-2005 Warner Losh <imp@FreeBSD.org>

Add the ability to match the on a media type of the device in question.

Submitted by: sam
Approved by: re (scottl)


# 842ccec5 24-Oct-2003 Warner Losh <imp@FreeBSD.org>

Parse the ! lines that will soon be coming from the kernel. These are
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.


# 6aeeca8e 26-Apr-2003 Warner Losh <imp@FreeBSD.org>

Create a new C++ header file called devd.hh which has all the class
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).