2009年1月22日 星期四

define macro in xcode

ex:
configuration: Debug
gcc 4.0 processing-> preprocessor macros:   _DEBUG

combine c and c++ for apple driver

set build option:
gcc 4.0 language -->  compile source as -->  c++

2009年1月21日 星期三

info.plist for driver

IOMatchCategory:
set IODefaultMatchCategory to compare with other driver
the driver with higher probe score will win

2009年1月11日 星期日

IOLog

print message in the kernel

the message is stored at /var/log/system.log