Simple Questions From MAC Beginner
Simple Questions From MAC Beginner
- Subject: Simple Questions From MAC Beginner
- From: email@hidden
- Date: Wed, 24 Jun 2009 09:35:58 +0100
I am in the process of writing my first mac driver. I am struggling with the documentation and am failing to find
the way to do some quite simple functions. I am writing a virtual cd/dvd/bd hba. I found an example in the docs. I
already have a good scsi implemenation of a cdrom drive which I wrote for other platforms.
1. I have a need to calculate elapsed time. Great resolution is not required 100ths of a second will be fine. On
windows there is a function (KeQueryTickCount) which returns a timer tick count. What is the equivalent function
in the Mac kernel?
2. I need to read a file. I have a counted unicode string containing a file path name. What are the functions I
should use to open, read, get length and close a file?
Thankyou
--
-------------------------------------------------
Visit Pipex Business: The homepage for UK Small Businesses
Go to http://www.pipex.co.uk/business-services
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden