mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:52:57 +00:00
[RXCE]
Implement FCB refcounting CORE-11327 svn path=/trunk/; revision=74682
This commit is contained in:
parent
e89be79709
commit
40f5fb3a68
1 changed files with 29 additions and 4 deletions
|
@ -4367,12 +4367,25 @@ RxpDereferenceAndFinalizeNetFcb(
|
||||||
return Freed;
|
return Freed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
LONG
|
LONG
|
||||||
RxpDereferenceNetFcb(
|
RxpDereferenceNetFcb(
|
||||||
PFCB Fcb)
|
PFCB Fcb)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
LONG NewCount;
|
||||||
return 0;
|
|
||||||
|
PAGED_CODE();
|
||||||
|
|
||||||
|
ASSERT(NodeTypeIsFcb(Fcb));
|
||||||
|
|
||||||
|
NewCount = InterlockedDecrement((volatile long *)&Fcb->NodeReferenceCount);
|
||||||
|
ASSERT(NewCount >= 0);
|
||||||
|
|
||||||
|
PRINT_REF_COUNT(NETFCB, NewCount);
|
||||||
|
|
||||||
|
return NewCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -4491,12 +4504,24 @@ RxPrefixTableLookupName(
|
||||||
return Container;
|
return Container;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
LONG
|
LONG
|
||||||
RxpReferenceNetFcb(
|
RxpReferenceNetFcb(
|
||||||
PFCB Fcb)
|
PFCB Fcb)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
LONG NewCount;
|
||||||
return 0;
|
|
||||||
|
PAGED_CODE();
|
||||||
|
|
||||||
|
ASSERT(NodeTypeIsFcb(Fcb));
|
||||||
|
|
||||||
|
NewCount = InterlockedIncrement((volatile long *)&Fcb->NodeReferenceCount);
|
||||||
|
|
||||||
|
PRINT_REF_COUNT(NETFCB, Fcb->NodeReferenceCount);
|
||||||
|
|
||||||
|
return NewCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue