Globus_xio uses data descriptors to associate meta data with the data being written or the data read. data descriptors flow into the drivers read and write interface functions by way of the operation structure. if the driver is interested in viewing the data descriptor it can request it from the operation structure via a call to globus_xio_driver_operation_get_data_descriptor() and it can view any driver specific data descriptor via a call to globus_xio_driver_data_descriptor_get_specific(). the driver can modify values in the data descriptor by setting values before passing the request down the stack. several functions are available to modify the data descriptors. there is no need to 'set()' the data descriptors back into the operation. the functions for manipulating the values in a dd affect the values xio has directly. data descriptors flow back to the driver in the callbacks for the data operations. when calling finished operation on a data operation the driver must pass in a data descriptor. it should get this data descriptor from the io operation callback. life cycle: passing in a data descriptor: a data descriptor is first created by the globus_xio user. the user can add driver specific data descriptors to it. once the user has created and set the attributes on its data descriptor to their liking they pass it into a globus_xio data operation (either read or write). when the data descriptor is passed on globus_xio will make an internal copy of it. it does this by first coping the user the level data descriptor and then walking through the list of driver specific data descriptor contained in to and requesting the driver make a copy of the driver specific data descriptor. if ever a driver specific data descriptor is null globus_xio need not call into its drivers dd_copy function. if ever the user level data descriptor is null globus_xio need not deal with the data descriptor functionality at all. a data descriptor coming back up the stack once an io operation reaches the transport driver (the bottom of the stack) it takes on a slightly different role. on the way in it is describing what is requested to be done with the data, on the way out it is describing what has actually been done. once the transport driver performs the operation it should adjust the data descriptor to reflect what has actually happened (few drivers will need to worry about this). each driver on the way up can adjust the data descriptor and its driver specific data descriptor. when xio reaches the top of the stack it calls a user callback. when that callback returns all memory associated with the data descriptor is cleaned up. the interface function globus_xio_driver_data_descriptor_free() is used for this.
Generated automatically by Doxygen for globus_xio from the source code.