vhold , vdrop , vdropl - acquire/release a hold on a vnode
The
vdrop ();
and
vdropl ();
functions decrement the
v_holdcnt
of the vnode.
If the holdcount is less than or equal to zero prior to calling
vdrop ();
or
vdropl (,);
the system will panic.
If the vnode is no longer referenced, it will be freed.
The difference between
vdrop ();
and
vdropl ();
is that
vdrop ();
locks the vnode interlock and then calls
vdropl ();
while
vdropl ();
expects the interlock to already be locked.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |