AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

AIX kernel equivalent of gettimeofday

  • 1.  AIX kernel equivalent of gettimeofday

    Posted Tue September 04, 2007 06:03 PM

    Originally posted by: SystemAdmin


    Hi,

    I am porting a kernel module in AIX 5.3. To performing timestamping within this module

    (a) Is there a kernel based gettimeofday() or equivalent to obtain time from the designated epoch ? I went through the kernel symobls and did not see anything similar to gettimeofday()

    (b) Are there kernel variables indicating the time zone ?

    Thanks,

    Sri


  • 2.  Re: AIX kernel equivalent of gettimeofday

    Posted Wed September 05, 2007 04:20 AM

    Originally posted by: SystemAdmin


    Hi,
    Please check this site for time-service in AIX kernel:
    http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.kerneltechref/doc/ktechrf1/curtime.htm

    Also, I am interested to know why do you need time in kernel mode.

    Please note that this forum is rarely answered. It is a pity that no one from IBM bothers to check-it and respond.
    I always like to discuss AIX kernel with other developers. If you are interested, please let me know.

    Thanks,
    Eran.


  • 3.  Re: AIX kernel equivalent of gettimeofday

    Posted Sat September 15, 2007 04:24 AM

    Originally posted by: SystemAdmin


    thank you for help

    hi,could you give me some document about deivce dirver?or give me a char divice driver demo. my email:hwzhongyun@huawei.com

    thank you!!