≡ Menu

FreeBSD: Find Out If Particular Kernel Feature Compiled Or Not

Q. How do I find out if a Particular feature is compiled into my running FreeBSD kernel or not?

A. FreeBSD stores kernel configuration file under directory called /usr/src/sys/$(uname -m)/conf. GENERIC is generic default kernel configuration file for FreeBSD stock kernel. The general format of a configuration file is quite simple. Each line contains a keyword and one or more arguments. Use vi or grep command to find out information about particular kernel feature or driver. For example, find out if ATAPI tape drives compiled or not, enter:
# grep atapist GENERIC
Sample output:

device		atapist		# ATAPI tape drives

Most lines only contain one argument. If you do not see any output or blank output, feature is not added in your kernel. Anything following a # is considered a comment and ignored. You can also use vi command to view file:

Further readings:

Share this tutorial on:

Like this? Follow us on Twitter OR support us by using Patreon

{ 0 comments… add one }
Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">

   Tagged with: , , , , , , , ,