int vfs_search (vfs_srchfcn, srchargs) (int (*vfs_srchfcn)(struct vfs *caddr_t); caddr_t srchargs;
The vfs_search kernel service searches the vfs list. This kernel service allows a process outside the file system to search the vfs list. The vfs_search kernel service locks out all activity in the vfs list during a search. Then, the kernel service iterates through the vfs list and calls the search function on each entry.
The search function must not request locks that could result in deadlock. In particular, any attempt to do lock operations on the vfs list or on other VFS structures could produce deadlock.
The performance of the vfs_search kernel service may not be acceptable for functions requiring quick response. Iterating through the vfs list and making an indirect function call for each structure is inherently slow.
The vfs_search kernel service can be called from the process environment only.
This kernel service returns the value returned by the last call to the search function.
This kernel service is part of Base Operating System (BOS) Runtime.
List of Virtual File System Operations.