egd_close(3)

egd_close3

Close a device

Usage

#include <eegdev.h>

int egd_close(struct eegdev* dev);

Overview

egd_close() frees all resources associated to the device referenced by dev and closes it. It stops also implicitely any running acquisition.

After a successful call to egd_close(), the reference dev cannot be used any longer.

Return value

The function returns 0 in case of succes. Otherwise, -1 is returned and errno is set accordingly.

Errors

egd_close() will fail if:

EINVAL

dev is NULL.

Releases

Unchanged in 7 releases since Debian 7 (Wheezy).

  1. 7–13

From libeegdev-dev 0.2-10 in Debian 13 (Trixie). Parsed by carta from the page's man source.