OCF IO definitions.  
More...
Go to the source code of this file.
◆ ocf_end_io_t
      
        
          | typedef void(* ocf_end_io_t) (struct ocf_io *io, int error) | 
      
 
OCF IO completion. 
- Note
- Completion function for OCF IO
- Parameters
- 
  
    | [in] | io | OCF IO being completed |  | [in] | error | Completion status code |  
 
 
 
◆ ocf_handle_io_t
      
        
          | typedef void(* ocf_handle_io_t) (struct ocf_io *io, void *opaque) | 
      
 
OCF IO handle. 
- Note
- OCF IO handle callback
- Parameters
- 
  
  
 
 
◆ ocf_start_io_t
      
        
          | typedef void(* ocf_start_io_t) (struct ocf_io *io) | 
      
 
OCF IO start. 
- Note
- OCF IO start notification callback
- Parameters
- 
  
    | [in] | io | OCF IO being started |  
 
 
 
◆ ocf_io_get()
      
        
          | void ocf_io_get | ( | struct ocf_io * | io | ) |  | 
      
 
Increase reference counter in OCF IO. 
- Note
- Wrapper for get IO operation
- Parameters
- 
  
  
 
 
◆ ocf_io_get_data()
Get data vector from OCF IO. 
- Note
- Wrapper for get data vector function
- Parameters
- 
  
  
- Returns
- Data vector from IO 
 
 
◆ ocf_io_get_priv()
      
        
          | void* ocf_io_get_priv | ( | struct ocf_io * | io | ) |  | 
      
 
Get IO private context structure. 
- Parameters
- 
  
  
- Returns
- IO private context structure 
 
 
◆ ocf_io_get_volume()
Get volume associated with io. 
- Parameters
- 
  
    | [in] | io | OCF IO to be handled |  
 
 
 
◆ ocf_io_handle()
      
        
          | void ocf_io_handle | ( | struct ocf_io * | io, | 
        
          |  |  | void * | opaque | 
        
          |  | ) |  |  | 
      
 
Handle IO in cache engine. 
- Parameters
- 
  
    | [in] | io | OCF IO to be handled |  | [in] | opaque | OCF opaque |  
 
 
 
◆ ocf_io_put()
      
        
          | void ocf_io_put | ( | struct ocf_io * | io | ) |  | 
      
 
Decrease reference counter in OCF IO. 
- Note
- If IO don't have any reference - deallocate it
- Parameters
- 
  
  
 
 
◆ ocf_io_set_data()
Set up data vector in OCF IO. 
- Note
- Wrapper for set up data vector function
- Parameters
- 
  
    | [in] | io | OCF IO to set up |  | [in] | data | Source data vector |  | [in] | offset | Data offset in source data vector |  
 
- Return values
- 
  
    | 0 | Data set up successfully |  | Non-zero | Data set up failure |