Modifying file_operations

Simon Turvey (turveysp@ntlworld.com)
Thu, 13 Sep 2001 23:53:45 +0100


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/