DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
UDI driver coding basics

Static driver properties (udiprops.txt)

The source code of a UDI driver must be accompanied by a file that tells the system compiler and UDI packaging utilities about those properties of the driver that are known in advance and will remain the same in any instantiation of the driver.

This file (always named udiprops.txt) can be created at any time prior to the first compilation of the driver code; we treat it here first as it provides a good starting point for discussing the driver code itself.

While somewhat analogous to the traditional Makefile used by the UNIX System make(1) utility and other similar compilation methods, the information contained in udiprops.txt includes more than compilation directives.

Below are portions of the sample source for the udiprops.txt files for the CMOS RAM (udi_cmos) and pseudo-device (pseudod) sample UDI drivers. These samples show how a typical udiprops.txt file begins, with identification information for the driver and the UDI interface version it uses. A complete discussion of udiprops.txt declarations and syntax can be found under Static Driver Properties in the UDI Core Specification.


Next topic: Driver identification
Previous topic: Design of the CMOS and pseudo-device drivers

© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - 19 June 2005