sc_lock(3)

sc_lock3

Lock a card for exclusive use

Usage

#include <opensc.h>
int sc_lock(struct sc_card *card);

Overview

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.

Return value

Returns 0 on success, or a negative value in case of error.

Releases

4 releases since Debian 3.1 (Sarge); the text changed 3 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0

From libopensc2-dev 0.11.13-1.1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.