fix: Use 'kernel_read' to read from procfs
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 24 Sep 2020 19:38:35 +0000 (15:38 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 30 Sep 2020 16:06:05 +0000 (12:06 -0400)
commit47beefeb734480aebea4b748151d7f2d6db480e3
tree6b3b464b5d81895f0431d9dfdae3a2cf4f986dee
parent6f9e33eac07801365005f3344fd560cb04a400f4
fix: Use 'kernel_read' to read from procfs

Use the 'kernel_read' helper to read files in procfs, it's present in
the kernel since the 2.6 series and does the right thing on kernels that
require the set_fs dance and newer one which don't.

Change-Id: I1a53fda379e0bb9acc79331626925bbdba63d727
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
wrapper/random.c
This page took 0.0269 seconds and 4 git commands to generate.