A method, apparatus and computer program product for providing a device
includes incorporating a session ID into the device name. Communication
between an application and device is done by way of a pseudo device
driver which identifies the appropriate daemon based on the session id,
and forwards the data to the daemon where the daemon provides the data to
the device. In operations, the system detects a requirement to access a
device during a user session and obtains a session identification
associated with the user session. A daemon creates a single device node
having an identity that indicates the session identification associated
with the user session and a pseudo device driver receives a request to
access a device from an application associated with the user session. The
device driver parses the request to identify the daemon associated with
the user session to process the request based on the session
identification indicated within the identity of the device as specified
in the request to access the device, and then forwards the request to the
identified daemon to allow the application to access the device via the
single device node.