lkml.org 
[lkml]   [2005]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectatime on devices
Hi!

It is sometimes useful to know device access time. Things that I have in
mind are the software-based hard disk inactivity spindown (some brain
damaged IDE drives fail to follow "hdparm -S" if the argument is longer
than 1/2 hour) and sound card muting if it is not touched for a while.
Notebook users might want to powerdown their network cards after
inactivity as well.

I wonder if such functionality is already available or is planned to be
available some time soon?

Earlier discussions I found in the list mention also atime of tty, mouse
and other human interface device (but "access" meaning is somewhat
different).

Thanks
-L.

P.S. For my own purposes of the disk spindown I'm using an ad-hoc patch
(which I wrote as a proof of the concept while using late 2.2 kernels, it
is still functional in 2.4.30, never had time to rewrite it properly) to
ide-disk.c, so that it exports the last access time as
/proc/ide/hdX/last_access. Keeping atime attribute along with device files
themselves seems more logical, but might cause side effects...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-08-16 11:51    [W:0.047 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site