How to use the FreeBSD code style in Emacs?

The recommended code style for FreeBSD source code described in the style(9) man page. In FILES section provided the Emacs Lisp file /usr/src/tools/tools/editing/freebsd.el with bsd function for using the recommended style. To use this function in Emacs open your Emacs init file and add the following code: Save the init file and (if you used... » read more

FreeBSD device drivers

Now I reading the greatest book “FreeBSD device drivers” by Joseph Kong. The book covers FreeBSD version 8, but now versions 12.1, 12.0 and 11.3 are actual (I use the version 12.1) and some code aren’t compile. For example, the pointless driver (section “Implementing sysctls, Part 1”, chapter 3 on page 41). Because I testing... » read more