You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The return value of bladerf_open() should be checked to ensure that the struct bladerf is valid. I would strongly advise against trying to parse memory of a potentially uninitialized pointer.
Thanks for the reply. What i meant is, I want to check for sudden disconnects asynchronously. That is, I want to monitor the state of the dev pointer after opening it.
For now, I think, the only way to do it is to occasionally ask for serial number or something like that to get the potential error return.
What i was asking is, i want to know if you have any inbuilt function to check if device has been disconnected and dev has to be re-opened. I do not seem to find anything like that
Hello, i am trying to figure out how to validate whether the *dev pointer is valid. The struct is as follows:
I do not see any file descriptor that could be monitored with ,for example, epoll. Also i do not seem to notice any backend_fns which could help me.
Is there any way i could do this?
The text was updated successfully, but these errors were encountered: