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
Answertopia.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

Time-Related Functions

The time-related functions are:

ddi_get_lbolt()

Return the number of clock ticks since reboot

ddi_get_time()

Return the current time in seconds

ddi_periodic_add()

Issue nanosecond periodic timeout requests

ddi_periodic_delete()

Cancel nanosecond periodic timeout requests

delay()

Delay execution for a specified number of clock ticks

drv_hztousec()

Convert clock ticks to microseconds

drv_usectohz()

Convert microseconds to clock ticks

drv_usecwait()

Busy-wait for specified interval

gethrtime()

Get high-resolution time

gethrvtime()

Get high-resolution LWP virtual time

timeout()

Execute a function after a specified length of time

untimeout()

Cancel the previous time out function call

drv_getparm()

ddi_get_lbolt(), ddi_get_time()

Table B-9 Deprecated Time-Related Functions

Deprecated Function

Replacement

drv_getparm()

ddi_get_lbolt(), ddi_get_time()

Previous Next

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