LWN.net Logo

Why does this need to be done in the kernel?

Why does this need to be done in the kernel?

Posted Oct 9, 2010 10:47 UTC (Sat) by tux1968 (guest, #58956)
Parent article: Organizing kernel messages

What's the purpose of calculating this CRC in kernel space? Couldn't a userspace tool calculate it just as easily? Said tool could keep a database of messages that have changed so that they hash out to the same ID etc...


(Log in to post comments)

Why does this need to be done in the kernel?

Posted Oct 9, 2010 12:43 UTC (Sat) by johill (subscriber, #25196) [Link]

You want to calculate the CRC on the format string, not on the formatted string, and userspace never has access to the former at runtime.

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