3
.\" Generator: DocBook XSL Stylesheets v1.71.0 <http://docbook.sf.net/>
5
.\" Manual: OpenSC API reference
8
.TH "SC_LOCK" "3" "09/10/2007" "opensc" "OpenSC API reference"
9
.\" disable hyphenation
11
.\" disable justification (adjust text to left margin only)
14
sc_lock \- Lock a card for exclusive use
23
int sc_lock(struct sc_card *card);
30
This function locks the card against modification from other threads or processes. The function may be called several times; a counter will be increased, and the card will be unlocked only when this counter reaches zero.
33
Returns 0 on success, or a negative value in case of error.