[LTP] [PATCH] Add library support for /proc/sys/kernel/tainted

Cyril Hrubis chrubis@suse.cz
Thu Jan 25 14:40:39 CET 2018


Hi!
> This one kept me busy thinking about it yesterday evening.
> I wonder if we could reduce it to two functions:
>   tst_taint_init(unsigned mask)
> and
>   tst_taint_check()
> 
> The first one saves the desired flags, checks for support in kernel etc.
> and the latter just checks if the tainted flags remain the same.
> 
> After thinking it through, I can hardly imagine a different use case.

Agreed, we also have the luxury of having all the code that uses the
library in one repository. Hence we do not have to carry on with API
mistakes for years as libc and other core library have to...

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list