EGD_CLOSE(3)
π EGD_CLOSE(3) β EEGDEV library manual π
okay bestie, welcome to the EEGDEV library manual, page EGD_CLOSE(3) β¨ this one's short and sweet and it's literally about saying bye to a device. no cap.
β¨ NAME β¨
egd_close β close a device π«Ά
πΈ SYNOPSIS πΈ
#include <eegdev.h>
int egd_close(struct eegdev* dev);
π DESCRIPTION π
so, egd_close() does the full send-off, bestie. it frees all the resources associated to the device referenced by dev and closes it. like, everything. gone. clean.
and the way that it also implicitly stops any running acquisition? iconic. you don't even have to ask, it just does it. π
π¨ okay this part matters, fr fr: after a successful call toegd_close(), the referencedevcannot be used any longer. it's done. it's over. don't touch it. don't call anything on it. it's giving "ghosted" and you need to respect that. π
π RETURN VALUE π
- returns
0in case of success π - otherwise,
-1is returned anderrnois set accordingly π
π ERRORS π
egd_close() will fail if:
EINVALβdevisNULL. yeah. you passed nothing. there's no device to close, bestie π
mood: closing a device is self-care. free the resources, stop the acquisition, log off, hydrate. π¦
this page came to you courtesy of EPFL, dated 2010 β and yes, we're still in the EGD_CLOSE(3) era of the EEGDEV library manual. periodt. πβ¨
π¦ where this page comes from
- debian bookworm: libeegdev-dev 0.2-6+b1
- debian trixie: libeegdev-dev 0.2-10
- fedora 43: eegdev-devel 0.2-33.fc43 Β· LGPL-3.0-or-later
- fedora 44: eegdev-devel 0.2-34.fc44 Β· LGPL-3.0-or-later
- ubuntu jammy: libeegdev-dev 0.2-6
- ubuntu noble: libeegdev-dev 0.2-9build2
- ubuntu questing: libeegdev-dev 0.2-10
- ubuntu resolute: libeegdev-dev 0.2-12
- ubuntu stonking: libeegdev-dev 0.2-12
- Copyright 2010 (c) EPFL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms