Generated from cl_syshelper.h with ROBODoc v3.2.3 on Sat Jan 18 07:05:18 2003
TABLE OF CONTENTS
- Component Library System Helper/__cl_syshelper_exit
- Component Library System Helper/__cl_syshelper_init
- Component Library System Helper/__cl_user_syshelper_exit
- Component Library System Helper/cl_helper_objects_t
- Component Library System Helper/cl_phy_io_addr_space_t
- Component Library System Helper/cl_shared_buf_obj_t
- Component Library System Helper/cl_syshelper_obj_ctxt_t
- Component Library System Helper/define_io_space
- Component Library System Helper/is_io_space
- Component Library System Helper/pfn_cleanup_on_close
- Component Library System Helper/syshelper_cleanup_sh_buf
- Component Library/System Helper
NAME
__cl_syshelper_exit
DESCRIPTION
SYNOPSIS
void
__cl_syshelper_exit(void);
PARAMETERS
None
RETURN VALUES
None.
NOTES
SEE ALSO
system_helper_init
NAME
__cl_syshelper_init
DESCRIPTION
Initializes the system helper data structures and prepares it
for use.
SYNOPSIS
cl_status_t
__cl_syshelper_init(void);
PARAMETERS
None.
RETURN VALUES
TBD
NOTES
SEE ALSO
system_helper_exit
NAME
__cl_user_syshelper_exit
DESCRIPTION
Cleanup the system helper in user mode.
SYNOPSIS
void
__cl_user_syshelper_exit(void);
PARAMETERS
None.
RETURN VALUES
None.
NOTES
SEE ALSO
#endif // __KERNEL__
Shared between user and kernel mode.
/
***d* Component Library System Helper/cl_syshelper_ops_t
NAME
cl_helper_objects_t
DESCRIPTION
Enumerates the different helper object types.
SYNOPSIS
typedef enum _cl_helper_objects
{
WAIT_OBJECT = 0,
SHARED_BUFFER_OBJECT,
LAST_HELPER_OBJECT /* should always be at the end */
} cl_helper_objects_t;
VALUES
WAIT_OBJECT
Indicates object is a wait object.
SHARED_BUFFER_OBJECT
Indicates object is a shared buffer.
LAST_HELPER_OBJECT
Maximum number of objects.
SEE ALSO
NAME
cl_phy_io_addr_space_t
DESCRIPTION
SYNOPSIS
typedef struct cl_phy_io_addr_space
{
cl_list_item_t list_item;
uintn_t base;
uintn_t length;
} cl_phy_io_addr_space_t;
NAME
cl_shared_buf_obj_t
DESCRIPTION
SYNOPSIS
typedef struct cl_shared_buf_obj
{
cl_list_item_t list_item;
void *kernel_buffer;
void *user_address;
uint32_t num_pages;
} cl_shared_buf_obj_t;
NAME
cl_syshelper_obj_ctxt_t
DESCRIPTION
SYNOPSIS
typedef struct cl_syshelper_obj_ctxt
{
/* Per-open object context list */
cl_map_item_t map_item;
cl_qmap_t sysdev_hmap;
cl_plock_t sysdev_plock;
cl_qlist_t obj_context_list[LAST_HELPER_OBJECT];
} cl_syshelper_obj_ctxt_t;
NAME
define_io_space
DESCRIPTION
This function lets a verbs provider driver declare its global IO
space. This is used by memory mapping utils to figure out if a virtual
address belongs to IO space.
SYNOPSIS
cl_status_t
define_io_space(
IN uintn_t virtual_address,
IN uintn_t length );
PARAMETERS
None.
RETURN VALUES
TBD
NOTES
SEE ALSO
NAME
is_io_space
DESCRIPTION
This function checks to see if the virtual address (input
parameter) is in I/O space.
SYNOPSIS
boolean_t
is_io_space(
IN uintn_t virtual_address );
PARAMETERS
None.
RETURN VALUES
TBD
NOTES
SEE ALSO
NAME
pfn_cleanup_on_close
DESCRIPTION
Function prototype for cleanup call when close is called
on the file descriptor
SYNOPSIS
typedef void
(*pfn_cleanup_on_close)(
IN void *p_object_context_qlist );
PARAMETERS
p_object_context_qlist
[in] The Qlist that is passed in as a context to this
function.
RETURN VALUES
None.
NOTES
SEE ALSO
NAME
syshelper_cleanup_sh_buf
DESCRIPTION
Function to cleanup a shared buffer.
SYNOPSIS
cl_status_t
syshelper_cleanup_sh_buf(
IN cl_shared_buf_obj_t *p_shared_buf );
void *
__cl_insert_sysdev_hmap(
IN cl_qmap_t *p_map,
IN cl_map_item_t *p_map_item,
IN cl_plock_t *p_lock,
IN void *p_object);
void *
__cl_remove_sysdev_hmap(
IN cl_qmap_t *p_map,
IN cl_plock_t *p_lock,
IN void *p_object);
void *
__cl_find_sysdev_hmap(
IN cl_qmap_t *p_map,
IN cl_plock_t *p_lock,
IN void *p_object);
#else // __KERNEL__
User mode only
/
NAME
System Helper
DESCRIPTION
Provides various system helper utilities like wait objects,
shared buffer and asynchronous procedure calls.