The QNX operating system uses resource managers for managing filesystems and a wide variety of devices. By pathname space mapping, devices and resources are rendered as filesystem entries. This allows a client application to interact with multiple servers through POSIX function calls. The control structure and data structures related to resource managers are introduced, and the mappings between POSIX calls and the internal message handlers of a resource manager are explained. Two examples are given to show how to implement resource managers.