/* * Getting the big kernel lock. * * This cannot happen asynchronously, so we only need to * worry about other CPU's. */ void __lockfunc _lock_kernel(const char *func, const char *file, int line)
{ int depth = current->lock_depth + 1;
trace_lock_kernel(func, file, line);
if (likely(!depth)) {
might_sleep(); __lock_kernel(); }
current->lock_depth = depth;
} (略) EXPORT_SYMBOL(_lock_kernel);