Snowbat <(E-Mail Removed)> writes:
>Alex wrote:
>> I would like to monitor some wireless parameters (signal & noise level).
>> I know that I can read this from /proc/net/wireless.
>> My application has to react in "real time" to changes of these parameters
>> and I need to know how often the file "/proc/net/wireless" is updated by
>> the driver? (approximately)
>On my system it seems to be once every 100ms.
>Run the following for a few seconds while waving your hand around your
>wireless card (or antenna) and then check the contents of test.txt:
>while true; do VAR1=`date`; VAR2=`tail -n 1 /proc/net/wireless`; echo >> test.txt $VAR1 $VAR2; done
The proc filesystem is an entry into the kernel. Ie, when you do
cat /proc/net/wireless, you start a program which collects information from
various variables in the kernel and displays them. Ie, if it has changed in
the kernel, it has changed in this display.
Exactly how often the kernel updates its variables will probably depend on
what they are.
|