Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tdb_chainlock(3) [debian man page]

TDB_CHAINLOCK(3)					     Linux Programmer's Manual						  TDB_CHAINLOCK(3)

NAME
tdb_chainlock - lock a group of keys tdb_chainunlock - unlock a previously locked group of keys SYNOPSIS
#include <tdb.h> int tdb_chainlock(TDB_CONTEXT *tdb, TDB_DATA key); void tdb_chainunlock(TDB_CONTEXT *tdb, TDB_DATA key); DESCRIPTION
tdb_chainlock is a low-level function used to lock a particular key (and a number of other keys) without any checking: any other process attempting to perform tdb operations on those keys will block until tdb_chainunlock is called. NOTES
It is the user's responsibility to ensure that they do not deadlock the database using these functions: something which is impossible using the other access functions. RETURN VALUE
A return value of 0 indicates success and -1 indicates failure. AUTHORS
Software: Andrew Tridgell <tridge@linuxcare.com> Man page: Rusty. SEE ALSO
gdbm(3), tdb(3), tdb_lockall(3). Samba Oct 13, 2000 TDB_CHAINLOCK(3)

Check Out this Related Man Page

TDB(3)                                                       Linux Programmer's Manual                                                      TDB(3)

NAME
tdb - trivial database SYNOPSIS
A database similar to gdbm which allows multiple simultaneous writers. DESCRIPTION
This is a simple database API. It was inspired by the realisation that in Samba we have several ad-hoc bits of code that essentially imple- ment small databases for sharing structures between parts of Samba. As I was about to add another I realised that a generic database module was called for to replace all the ad-hoc bits. I based the interface on gdbm. I couldn't use gdbm as we need to be able to have multiple writers to the databases at one time. AUTHORS
Software: Andrew Tridgell <tridge@linuxcare.com> and Luke Kenneth Casson Leighton Man page: Ben Woodard <ben@valinux.com> SEE ALSO
gdbm(3), tdb_open(3), tdb_close(3), tdb_delete(3), tdb_error(3), tdb_exists(3), tdb_fetch(3), tdb_firstkey(3), tdb_store(3), tdb_tra- verse(3), tdb_lockall(3), tdb_lockkeys(3), tdb_chainlock(3) Samba Aug 16, 2000 TDB(3)
Man Page