print current date and time in a kernel module

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

 



Hi All,

 

   I want to print current date and time in a kernel module.  

  1) do we have direct functions that we could use in kernel?

  

   2) Can get time from epoch using gettimeofday? So, how do I convert it to the current date and time string. Is there something similar to

     userspace ctime in kernel?

If anybody have wrapper function getting time from secondd please send it me… 

 

With Thanks & Regards,

K. Lekshmanan

 


[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