Linux Kernel
3.7.1
|
Go to the source code of this file.
Functions | |
void | ocd_enable (struct task_struct *child) |
void | ocd_disable (struct task_struct *child) |
void ocd_disable | ( | struct task_struct * | child | ) |
ocd_disable - disable on-chip debugging : task that was being debugged, but isn't anymore
If is non-NULL, ocd_disable() checks if debugging is enabled for , and if it isn't, does nothing.
If is NULL (e.g. when debugging the kernel), or debugging is enabled, ocd_disable() decrements the reference count, and if it reaches zero, disables the debugging hardware.
void ocd_enable | ( | struct task_struct * | child | ) |
ocd_enable - enable on-chip debugging : task to be debugged
If is non-NULL, ocd_enable() first checks if debugging has already been enabled for , and if it has, does nothing.
If is NULL (e.g. when debugging the kernel), or debugging has not already been enabled for it, ocd_enable() increments the reference count and enables the debugging hardware.