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

Driver identification

The top of the udiprops.txt file contains the version of the specification to which the driver conforms, and some identification information for the driver source code.

cmos_udi.c sample code
   properties_version 0x101
   

## ## Identify ourselves. ##

supplier 1 message 1 Project UDI contact 2 message 2 http://www.project-UDI.org/participants.html name 3 message 3 CMOS RAM Sample UDI Driver

shortname udi_cmos release 2 alpha1.0rc3

pseudod.c sample code
   properties_version 0x101
   

message 1 Project UDI message 2 http://www.project-UDI.org/participants.html message 3 Pseudo-Driver message 4 Generic UDI Pseudo-Driver release 5 1.00\_version,\_compatible\_with\_UDI\_Specification\_1.01

supplier 1 contact 2 name 3 shortname pseudod

The properties_version declaration is required as the first non-comment statement in the udiprops.txt file. The sample drivers conform to version 1.01 of the UDI Specifications.

Each message statement is associated with another statement (such as supplier) that identifies the content of the message, or is used elsewhere in the driver code.

These declaration are required, but are largely informational, with the exception of the shortname declaration, used by the udimkpkg(1) command to name the packaged driver file. For a full description, see Property Declaration Syntax and Common Property Declarations in the Core Specification.


Next topic: Module and region declarations
Previous topic: Static driver properties (udiprops.txt)

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