Gets the bind ID of the processor we are running on.
#include <sys/processor.h>
cpu_t myc ()
The mycpu kernel service returns the bind ID of the processor we are currently running on.
The mycpu kernel services can be called from either the process or interrupt environment. This routine must be called disabled. Otherwise, the calling thread might be preempted and resume execution on a different processor resulting in a stale value being returned.
The mycpu kernel service returns the bind ID of the current processor.