FindDevice

Finds a device by name.

Synopsis

Item FindDevice( 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).

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 V20.

Associated Files

device.h
ANSI C Macro

See Also

OpenNamedDevice(), FindItem()