Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

resources:tools-software:linux-software:iio_scope:internals [06 Mar 2017 22:56] – created Robin Getzresources:tools-software:linux-software:iio_scope:internals [07 Mar 2017 08:38] (current) – something about DL Michael Hennerich
Line 10: Line 10:
  
 The init function is called during the plugin load via the [[https://github.com/analogdevicesinc/iio-oscilloscope/blob/master/plugins/fmcomms2.c#L2059|osc_plugin struct]]. The init function is called during the plugin load via the [[https://github.com/analogdevicesinc/iio-oscilloscope/blob/master/plugins/fmcomms2.c#L2059|osc_plugin struct]].
 +
 +OSC Plugins are dynamically loaded (DL) libraries (.so or .dll). During OSC start-up each file under the plugin folder is accessed using the dlopen() API. Using dlsym(lib, "plugin") the symbol to the osc_plugin structure is obtained. So each and every plugin is probed, weather or not the init() function is called depends on the return value of the identify() function call which takes place prior in time. Identify() is typically used to check the presence of a number of IIO devices required to a specific plugin to operate. 
  
 If you have any more detailed questions about how to write your own plugins for your own IIO devices, please ask on ADI's [[ez>community/linux-device-drivers/linux-software-drivers|EngineerZone]]. If you have any more detailed questions about how to write your own plugins for your own IIO devices, please ask on ADI's [[ez>community/linux-device-drivers/linux-software-drivers|EngineerZone]].
  
resources/tools-software/linux-software/iio_scope/internals.txt · Last modified: 07 Mar 2017 08:38 by Michael Hennerich