Modifying file_operations

From: Simon Turvey (turveysp@ntlworld.com)
Date: Thu Sep 13 2001 - 17:53:45 EST


Warning! This might be a stupid question.

Is it safe to modify the read() entry of a driver's file_operations struct
in order to modify the behaviour of the driver depending upon some context,
say a particular hardware mode. Or is the only way to do this safely to
test the current mode in read() adding overhead to the function.

Ta,
    Simon

-
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/



This archive was generated by hypermail 2b29 : Sat Sep 15 2001 - 21:00:43 EST