Introduction   Client Library API Reference   IDL Interface   File List   Index  

Open/Close Driver Instances
[Generic Block Interface Client API]

Handling of driver instances. More...

Typedefs

typedef l4_uint32_t l4blk_driver_t
typedef L4_CV void(* l4blk_setup_notify_callback_fn_t )(void)

Functions

L4_CV int l4blk_close_driver (l4blk_driver_t driver)
 Close block device driver.
L4_CV l4_threadid_t l4blk_get_driver_thread (l4blk_driver_t driver)
 Return thread id of command thread.

Detailed Description

Handling of driver instances.


Typedef Documentation

typedef l4_uint32_t l4blk_driver_t

Driver handle, it is used by the client library to identify a driver

Definition at line 34 of file types.h.

typedef L4_CV void(* l4blk_setup_notify_callback_fn_t)(void)

Notification thread setup callback function

Definition at line 40 of file types.h.


Function Documentation

L4_CV int l4blk_close_driver ( l4blk_driver_t  driver  ) 

Close block device driver.

Parameters:
driver Driver handle.
Returns:
0 on success (close driver instance), error code otherwise:
  • -L4_EINVAL invalid driver handle
Close driver instance.

L4_CV l4_threadid_t l4blk_get_driver_thread ( l4blk_driver_t  driver  ) 

Return thread id of command thread.

Parameters:
driver Driver handle
Returns:
Thread id of command thread, L4_INVALID_ID if invalid driver handle


Generic Block Interface Reference Manual, written by Lars Reuther  © 2000-2003