JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
man pages section 4: File Formats     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

Introduction

File Formats

addresses(4)

admin(4)

ai_manifest(4)

alias(4)

aliases(4)

a.out(4)

au(4)

audit_class(4)

audit_event(4)

audit.log(4)

auth_attr(4)

autofs(4)

bart_manifest(4)

bart_rules(4)

bootparams(4)

cardbus(4)

compver(4)

contents(4)

contract(4)

copyright(4)

core(4)

crypt.conf(4)

crypto_certs(4)

dacf.conf(4)

dat.conf(4)

dc_manifest(4)

defaultdomain(4)

default_fs(4)

defaultrouter(4)

depend(4)

device_allocate(4)

device_contract(4)

device_maps(4)

devices(4)

devid_cache(4)

devname_cache(4)

dfstab(4)

dhcp_inittab(4)

dhcp_network(4)

dhcpsvc.conf(4)

dhcptab(4)

dialups(4)

dir(4)

dir_ufs(4)

d_passwd(4)

driver(4)

driver.conf(4)

ds.log(4)

dumpdates(4)

ethers(4)

exec_attr(4)

fbtab(4)

fd(4)

fdi(4)

flash_archive(4)

format.dat(4)

forward(4)

fs(4)

fspec(4)

fstypes(4)

ftp(4)

ftpusers(4)

fx_dptbl(4)

gateways(4)

geniconvtbl(4)

group(4)

gsscred.conf(4)

hba.conf(4)

holidays(4)

hosts(4)

hosts.equiv(4)

ib(4)

idnkit.pc(4)

ike.config(4)

ike.preshared(4)

inetd.conf(4)

inet_type(4)

infiniband_hca_persistent_cache(4)

init.d(4)

inittab(4)

ipaddrsel.conf(4)

ipf(4)

ipf.conf(4)

ipnat(4)

ipnat.conf(4)

ipnodes(4)

ippool(4)

ippool.conf(4)

isa(4)

issue(4)

kadm5.acl(4)

kdc.conf(4)

keytables(4)

krb5.conf(4)

label_encodings(4)

ldapfilter.conf(4)

ldapsearchprefs.conf(4)

ldaptemplates.conf(4)

llc2(4)

logadm.conf(4)

logindevperm(4)

loginlog(4)

magic(4)

md.cf(4)

mddb.cf(4)

mdi_ib_cache(4)

mdi_scsi_vhci_cache(4)

md.tab(4)

mech(4)

meddb(4)

mnttab(4)

mod_ipp(4)

mpapi.conf(4)

named.conf(4)

ncad_addr(4)

nca.if(4)

ncakmod.conf(4)

ncalogd.conf(4)

ncaport.conf(4)

ndmp(4)

ndpd.conf(4)

netconfig(4)

netgroup(4)

netid(4)

netmasks(4)

netrc(4)

networks(4)

nfs(4)

nfslog.conf(4)

nfssec.conf(4)

NISLDAPmapping(4)

nodename(4)

nologin(4)

note(4)

notrouter(4)

nscd.conf(4)

nss(4)

nsswitch.conf(4)

packingrules(4)

pam.conf(4)

pam.d(4)

passwd(4)

path_to_inst(4)

pci(4)

pcie(4)

pci_unitaddr_persistent(4)

phones(4)

pkginfo(4)

pkgmap(4)

plot(4B)

policy.conf(4)

priv_names(4)

proc(4)

process(4)

prof_attr(4)

profile(4)

project(4)

protocols(4)

prototype(4)

pseudo(4)

publickey(4)

qop(4)

queuedefs(4)

rcmscript(4)

rdc.cf(4)

registration_profile(4)

remote(4)

resolv.conf(4)

rhosts(4)

rmtab(4)

rndc.conf(4)

rpc(4)

rt_dptbl(4)

sasl_appname.conf(4)

sbus(4)

sccsfile(4)

scsi(4)

securenets(4)

sel_config(4)

sendmail(4)

sendmail.cf(4)

service_bundle(4)

service_provider.conf(4)

services(4)

shadow(4)

sharetab(4)

shells(4)

slp.conf(4)

slpd.reg(4)

smb(4)

smbautohome(4)

smhba.conf(4)

snapshot_cache(4)

sndr(4)

sock2path.d(4)

space(4)

ssh_config(4)

sshd_config(4)

submit.cf(4)

sulog(4)

sysbus(4)

syslog.conf(4)

system(4)

telnetrc(4)

term(4)

terminfo(4)

TIMEZONE(4)

timezone(4)

TrustedExtensionsPolicy(4)

ts_dptbl(4)

ttydefs(4)

ttysrch(4)

ufsdump(4)

updaters(4)

user_attr(4)

utmp(4)

utmpx(4)

vfstab(4)

volume-config(4)

volume-defaults(4)

volume-request(4)

wanboot.conf(4)

warn.conf(4)

wtmp(4)

wtmpx(4)

ypfiles(4)

yppasswdd(4)

ypserv(4)

zoneinfo(4)

fdi

- HAL device information file format

Synopsis

/usr/share/lib/xml/dtd/fdi.dtd.1

Description

The hardware abstraction layer facility, described in hal(5), uses an XML-based file format to merge arbitrary properties onto device objects. The way device information files works is that once all physical properties are merged onto a device object, it is tried against the set of installed device information files. Device information files are used for both merging facts and policy settings for devices.

Each device information file has a number of match directives that are tested against the properties of the device object. The directives have the form:

<match key="property" [string|int|bool|..]="value">

If all the match directives pass, then the device information can include the following property directives in the form:

<[merge|append|prepend] key="property" type="[string|int|bool|..]">

These directives are used to merge new properties or append to existing properties on the device object. Any previously property stemming from device detection can be overridden by a device information file.

The match, merge, append, and prepend directives require that the key attribute be either a property name on the device object in question or a path to a property on another device object. The path to a property is expressed either through direct specification of the UDI, such as /org/freedesktop/Hal/devices/computer:foo.bar or through indirect references such as “@info.parent:baz”, meaning that the device object specified by the UDI in the string property “info.parent” should be used to query the property “baz”. It is also possible to use multiple indirections. For example, for a volume on a USB memory stick, the indirection “@block.storage_device:@storage.physical_device:usb.vendor_id” references the “usb.vendor_id” property on the device object representing the USB interface.

When the property to match has been determined, the following attributes can be used within the “match” tag:

string

Match a string property. For example, <match key= “foo.bar” string=”baz”> matches only if “foo.bar” is a string property assuming the value “baz”.

int

Match an integer property

uint64

Match property with the 64-bit unsigned type

bool

Match a boolean property

double

Match a property of type double

exists

Used as <match key=“foo.bar” exists=“true”>. This attribute can be used with “true” and “false”, respectively to match when a property exists or does not exist.

empty

This attribute can only be used on string properties with “true” and “false”. The semantics for “true” is to match only when the string is non-empty.

is_absolute_path

Matches only when a string property represents an absolute path (the path does not have to exist). This attribute can be can be used with “true” or “false”.

is_ascii

Matches only when a string property contains ASCII characters. This attribute can be used with “true” or “false”.

compare_lt

This attribute can be used with int, uint64, double and string properties to compare with a constant. It matches when the given property is less than the given constant using the default ordering.

compare_le

Similar to compare_lt, but matches when the given property is less than or equal than the given constant using the default ordering.

compare_gt

Similar to compare_lt, but matches when the given property is greater than the given constant using the default ordering.

Similar to compare_lt, but matches when the given property is greater than or equal than the given constant using the default ordering.

This attribute can only be used with string and strlist (string list). For a string key, this matches when the property contains the given (sub)string. For a string list, this matches if the given string matches a item in the list.

contains_ncase

Similar to contains, but the property and the given key are converted to lowercase before it is checked.

The merge, append, and prepend directives all require the attribute type which specifies what is to be merged. The following values are supported:

string

The value is copied to the property. For example, <merge key=”foo bar” type=”string”> baz</merege> merges the value “baz” into the property “foo.bar”.

strlist

For merge, the value is copied to the property and the current property is overwritten. For append and prepend, the value is appended or prepended to the list as a new item.

bool

This attribute can merge the values “true” or “false”

int

Merges an integer

uint64

Merges an unsigned 64-bit integer

double

Merges a double precision floating point number

copy_property

Copies the value of a given property; supports paths with direct and indirect UDI's. For example, <merge key=”foo.bar” type=”copy_property”>@info.parent:baz.bat</merge> merges the value of the property “baz.bat” on the device object with the UDI from the property “info.parent” into the property “foo.bar” on the device object being processed.

The remove directive requires only a key and can be used with all keys. For strlist, there is also a special syntax to remove a item from the string list. For example, to remove item “bla” from property “foo.bar”, use the following syntax:

<remove key=”foo.bar” type=”strlist”>bla</merge>

Device Information files are stored in the following standard hierachy with the following default top level directories information, policy and preprobe:

information

Device information files to merge device information.

10freedesktop

Device information files included with the hal tarball.

20thirdparty

Device information files from the device manufacturer and installed from media accompanying the hardware.

30user

Device information for specific devices.

policy

Device information files to merge policy propertys

10osvendor

Device information files included with the hal tarball and supplied by the operating system vendor for policy rules

20thirdparty

Policy rules from the device manufacturer and installed from media accompanying the hardware

30user

Policy rules for specific devices.

preprobe

Device information files to merge information before probe devices.

10osvendor

Device information files included with the hal tarball and supplied by the operating system vendor.

20thirdparty

Device information files from the device manufacturer and installed from media accompanying the hardware.

30user

Device information for specific devices.

All device information files are matched for every hal device object.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/hal
Interface Stability
Volatile

See Also

hald(1M), attributes(5), hal(5), locale(5), smf(5)