IBONL(3)
β¨ IBONL(3) β¨
okay bestie, gather round, we're in the Traditional API Functions chapter and this one is literally just two functions in a trench coat π
πΈ NAME πΈ
ibonl β close it or reset it, your call, but pick one π (officially: close or reinitialize descriptor (board or device))
π¦ SYNOPSIS π¦
#include <gpib/ib.h>
int ibonl(int ud, int online);
π DESCRIPTION π
So the whole personality of this function depends on one lil parameter, online, and it's giving two completely different moods.
π if online is zero π
Then ibonl() frees the resources associated with the board or device descriptor ud. That's it, that's the whole goodbye arc π. After the ibonl() call that descriptor cannot be used again β like, it's gone gone, no cap, don't text it back.
also real talk: the parameter ud cannot be a board index (aka minor) in this mode. nope. not allowed. π
β if online is nonzero β
Then it's a glow-up instead of a goodbye β¨. All the settings associated with the descriptor get reset to their 'default' values β and yes that means the GPIB address, the end-of-string mode, the timeout, etc. (the etc. is doing a lot of lifting there but you get it).
And what are those 'default' values, you ask? They're literally the settings the descriptor had when it was first obtained with ibdev() or ibfind() π«Ά. Cute, right?
Oh and plot twist β in this mode the parameter ud can be a board index (aka minor). Iconic. Inclusive. We love a flexible parameter π
One more thing, because details are the main character: those 'default' values are the standard default values as modified by the corresponding gpib.conf interface definition π. So your config file gets a say. Respect it.
π RETURN VALUE π
The value of ibsta is returned. That's the whole thing. One line. Slay. β
π COPYRIGHT π
Copyright Β© 2003-2006, 2008 Frank Mori Hess
that's the page babes π from linux-gpib 4.3.7, dated 07/06/2026 β go reset something (or free something, respectfully) and have the best day ππ¦πΈ
π¦ where this page comes from
- ubuntu stonking: libgpib-doc 4.3.7-6 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms