1SC_LOCK(3) OpenSC API reference SC_LOCK(3)
2
3
4
6 sc_lock - Lock a card for exclusive use
7
9 #include <opensc.h>
10
11 int sc_lock(struct sc_card *card);
12
13
14
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
22 Returns 0 on success, or a negative value in case of error.
23
24
25
26opensc 02/16/2010 SC_LOCK(3)