Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Writing Device Drivers
Previous Next

User Space Access Functions

The user space access functions are:

ddi_copyin()

Copy data to a driver buffer

ddi_copyout()

Copy data from a driver

uiomove()

Copy kernel data using a uio structure

ureadc()

Add character to a uio structure

uwritec()

Remove a character from a uio structure

getminor()

Get minor device number.

ddi_model_convert_from()

Determine a data model type mismatch

IOC_CONVERT_FROM()

Determine whether there is a need to translate M_IOCTL contents

STRUCT_DECL()

Establish the handle to application data in a possibly differing data model

STRUCT_HANDLE()

Establish the handle to application data in a possibly differing data model

STRUCT_INIT()

Establish the handle to application data in a possibly differing data model

STRUCT_SET_HANDLE()

Establish the handle to application data in a possibly differing data model

SIZEOF_PTR()

Return the size of pointer in specified data model

SIZEOF_STRUCT()

Return the size of a structure in the specified data model

STRUCT_SIZE()

Return the size of a structure in the application data model

STRUCT_BUF()

Return a pointer to the native mode instance of the structure

STRUCT_FADDR()

Return a pointer to the specified field of a structure

STRUCT_FGET()

Return the specified field of a structure in the application data model

STRUCT_FGETP()

Return the specified pointer field of a structure in the application data model

STRUCT_FSET()

Set a specified field of a structure in the application data model

STRUCT_FSETP()

Set a specified pointer field of a structure in the application data model

Table B-6 Deprecated User Space Access Functions

Deprecated Function

Replacement

copyin()

ddi_copyin()

copyout()

ddi_copyout()

ddi_getminor()

getminor()

Previous Next

 
 
  Published under the terms fo the Public Documentation License Version 1.01. Design by Interspire