Date: Sun, 12 Mar 2006 16:25:07 +0530 From: "Pranav Peshwe" <pranavpeshwe@gmail.com> To: freebsd-hackers@freebsd.org Subject: Doubts about PICKUP_GIANT() and mtx_lock(&Giant). Message-ID: <cdfd7d6d0603120255x3039efa2w68c9217f5706e78c@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello, What is effectively the difference between PICKUP/DROP_GIANT and mtx_lock/unlock(&Giant) ? From the macro expansion, i surmise that PICKUP/DROP_GIANT deals with recursion in Giant locking.Is this correct ? i= s this the only difference ? What will happen if i mix the usage of PICKUP/DROP_GIANT and mtx_lock/unlock(&Giant) ? Also,is there any hard and fast rule prescribing which method of taking the Giant should be used where in the kernel ? TIA. Regards, Pranav --------------------------------------------------------------------------- To argue with a person who has renounced the use of reason is like administering medicine to the dead. -- Thomas Paine
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cdfd7d6d0603120255x3039efa2w68c9217f5706e78c>