User: Password:
|
|
Subscribe / Log in / New account

The dynamic debugging interface

The dynamic debugging interface

Posted Mar 24, 2011 22:35 UTC (Thu) by giraffedata (subscriber, #1954)
Parent article: The dynamic debugging interface

What does the struct device * argument mean?

I read the Documentation/ file, and didn't find it there either.


(Log in to post comments)

The dynamic debugging interface

Posted Mar 24, 2011 23:21 UTC (Thu) by gregkh (subscriber, #8) [Link]

It's the pointer to the 'struct device' that this message corresponds to.

The dynamic debugging interface

Posted Mar 24, 2011 23:34 UTC (Thu) by giraffedata (subscriber, #1954) [Link]

OK, and what if anything does that affect practically? Message content? Filtering?

struct device

Posted Mar 25, 2011 0:02 UTC (Fri) by corbet (editor, #1) [Link]

dev_dbg() (dev_printk(), really) uses the device pointer to add the name of the actual device to the output. That way we get standardized device-related message formats with information that, hopefully, is useful to the system admin.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds