I can easily convert kernel data type struct rtc_time
to string with help sprintf()
,
but I can't do reverse operation:
string "Thu Aug 23 14:55:02 2001" to rtc_time structure
Should I write my own realisation if strptime()
function into my kernel module?
Could anyone prompt me?