Introduction   Client Library API Reference   IDL Interface   File List   Index  

Driver Interface
[IDL Interface]

Handling of driver instances. More...

Typedefs

typedef l4_uint32_t l4blk_driver_id_t

Functions

int l4blk::driver::open ([out] l4blk_driver_id_t *drv,[out] l4_threadid_t *cmd_id,[out] l4_threadid_t *notify_id)
 Open new driver instance.
int l4blk::driver::close ([in] l4blk_driver_id_t drv)
 Close driver instance.

Detailed Description

Handling of driver instances.


Typedef Documentation

typedef l4_uint32_t l4blk_driver_id_t

Driver id, it is used to identify the driver instance at a block device driver

Definition at line 28 of file types.h.


Function Documentation

int l4blk::driver::open ( [out] l4blk_driver_id_t drv,
[out] l4_threadid_t *  cmd_id,
[out] l4_threadid_t *  notify_id 
) [inherited]

Open new driver instance.

Return values:
drv Handle for new instance
cmd_id Id of command service thread
notify_id Id of notification thread
Returns:
0 on success, error code if open failed.
Create a new instance of the driver. The main job is to assign instances of the command and callback interface threads to the client. This can either be existent or newly created interface threads, dependent on the actual requirements of the driver.

int l4blk::driver::close ( [in] l4blk_driver_id_t  drv  )  [inherited]

Close driver instance.

Parameters:
drv Driver handle
Returns:
0 on success, error code if close failed.
Close instance of the driver.


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