On Sat, Oct 10, 2015 at 01:25:47PM +0100, Carlos Meralto via Devel wrote:
> Hello guys,
> 
> Thanks for the help again!
> I have one more question:
> How can i add a line (in airtime_link_metric_get) to read a value from
> a file or from a command in shell script?
> I tried to use the system () function but was unable to include the
> required libraries. Still I have this information in a file too, that
> function can be used to fetch the value from a file?

You can't read files or execute helpers from kernel space (well, you /can/,
but it is highly inadvisable).

The best approach is to add a debugfs interface (see
net/mac80211/debugfs*.c) that you can write to from user space via cat
or the like.

-- 
Bob Copeland %% http://bobcopeland.com/
_______________________________________________
Devel mailing list
[email protected]
http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel

Reply via email to