Re: ctime funtion inside a module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Karthik M <k_mohanas@yahoo.com> wrote:
> hi,
> 
> I am trying to print the access time from the inode
> structure from within a kernel module.
> 
> The return type is time_t which is inturn a unsigned
> integer. I am trying to print this number is the
> format of :
> 
> "Day Month date time year"
> 
> The function which does this is in
> /usr/include/time.h. The name of the funtion is
> ctime() but I will not be able to acess it from the
> module. 
> 
> Is there any other funtion that has a similar
> funtionality which i can call from the module.
> 

See http://www.xml.com/ldd/chapter/book/ch06.html#t2

Perhaps do_gettimeofday() will help?

Harmony,

--Christine


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux