FsRtlNotifyCleanup routine

When the last handle to a file object is released, the FsRtlNotifyCleanup routine removes the file object's notify structure, if present, from the specified notify list.

Syntax


VOID FsRtlNotifyCleanup(
  _In_ PNOTIFY_SYNC NotifySync,
  _In_ PLIST_ENTRY  NotifyList,
  _In_ PVOID        FsContext
);

Parameters

NotifySync [in]

A pointer to an opaque synchronization object for NotifyList.

NotifyList [in]

A pointer to the head of a notify list. Each element in the list is an opaque notify structure.

FsContext [in]

A unique value assigned by the file system to identify a notify structure as belonging to a particular file object.

Return value

None

Remarks

If a notify structure is found that matches FsContext, FsRtlNotifyCleanup completes all IRPs that are queued in the notify structure. When all the IRPs are completed, FsRtlNotifyCleanup removes the notify structure from the notify list and deallocates it.

Requirements

Target platform

Universal

Header

Ntifs.h (include Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

<= APC_LEVEL

See also

FsRtlNotifyFilterChangeDirectory
FsRtlNotifyFilterReportChange
FsRtlNotifyFullChangeDirectory
FsRtlNotifyFullReportChange

 

 

Send comments about this topic to Microsoft

Show: