FindAndOpenDevice

Finds a device by name and opens it.

Synopsis

Item FindAndOpenDevice( const char *name )

Description

This macro finds a device whose name matches the name argument. The search is not case-sensitive (that is, the kernel does not distinguish uppercase and lowercase letters in device names). If the device is found, it is opened.

Arguments

name
The name of the device to find.

Return Value

The macro returns the item number of the device or an error code if an error occurs.

Implementation

Macro implemented in device.h V24.

Associated Files

device.h
ANSI C Macro

See Also

OpenNamedDevice(), FindAndOpenItem()