1SC_LOCK(3)                   OpenSC API reference                   SC_LOCK(3)
2
3
4

NAME

6       sc_lock - Lock a card for exclusive use
7

SYNOPSIS

9          #include <opensc.h>
10
11          int sc_lock(struct sc_card *card);
12
13
14

DESCRIPTION

16       This function locks the card against modification from other threads or
17       processes. The function may be called several times; a counter will be
18       increased, and the card will be unlocked only when this counter reaches
19       zero.
20

RETURN VALUE

22       Returns 0 on success, or a negative value in case of error.
23
24
25
26opensc                            05/04/2007                        SC_LOCK(3)
Impressum