DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

cm_end_trans(D3)


cm_end_trans -- complete a resource manager transaction

Synopsis

   #include <sys/types.h>
   #include <sys/confmgr.h>
   #include <sys/ddi.h>
   

void cm_end_trans(rm_key_t key);

Description

cm_end_trans( ) completes a resource manager transaction that was started with cm_begin_trans(D3) or cm_newkey(D3). After cm_end_trans( ) executes, changes made during the transaction become visible to other contexts.

Arguments


key
identifies the resource manager record that has been accessed.

Return values

None

Usage

Modifications made to the resource manager database do not become effective until after cm_end_trans( ) executes successfully. Use the cm_abort_trans(D3) function to abort a transaction if necessary.

Context and synchronization

User or blockable context.

Hardware applicability

All

Version applicability

ddi: 8, 8mp

Differences between versions

In DDI versions prior to version 8, cm_begin_trans(D3) and cm_end_trans(D3) are not supported. Calls to functions that access the resource manager database are only atomic with respect to other simultaneous resource manager database accesses.

References

config(D2)

cm_abort_trans(D3), cm_addval(D3), cm_begin_trans(D3), cm_delkey(D3), cm_delval(D3), cm_newkey(D3), cm_read_devconfig(D3), cm_read_devconfig8(D3), cm_read_devconfig16(D3), cm_read_devconfig32(D3), cm_write_devconfig(D3), cm_write_devconfig8(D3), cm_write_devconfig16(D3), cm_write_devconfig32(D3)

``Hotplug devices'' in HDK Technical Reference
``Autoconfiguration'' in HDK Technical Reference

Examples

See the "Examples" section of the cm_getval(D3) manual page for a code example of this function.
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005