Re: problem with md_thread??? missing unlock_kernel()?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 9 Jun 1999 02:28:38 +0100 (BST)


> Also is there any guidelines on when to use lock_kernel()? guess thats what
> iam looking for...

Most threads grab the kernel lock when they start. Its a good way to be sure
you can call all the kernel routines without worrying about if they are
fine grained. The lock is "magic" as it is dropped whenever you sleep. In
essence it is not a spinlock/semaphore but a lock that preserves the old style
Unix rules for pre-emption on those who hold it

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/