Is it possible to change the log level of a device driver at runtime?

John-Mark Gurney jmg at funkthat.com
Thu Nov 3 19:15:20 UTC 2011


Adarsh Joshi wrote this message on Thu, Nov 03, 2011 at 11:22 -0700:
> Is it possible to change the log level of a device driver at runtime?
> 
> I am trying to understand a network based device driver. It already has a number of print messages which are only printed if the debug flag is 1. Is it possible to toggle the debug flag when the driver is loaded, at runtime with some command?
> 
> A detailed explanation on how to go about this would be very helpful.

Depends upon the driver.  Some drivers allow you to set a sysctl to
change the debug level, others do not.

Which driver are we talking about?  Is it in the tree, or is it a vendor
supplied driver?

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the freebsd-drivers mailing list