const struct file_operations struct definition

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: santi mondal
Date: Tuesday, September 9, 2008 - 12:38 am

Hi All,

I was trying to build a kernel module to block all the writes
happening to a particular disk/mount point (multiple disk/mount points
at the same time). To achieve this I tried to replace the
file_operations->write function pointer. Since it is defined as
"const", replacing it is not poissible. Is there any way outs to get
the control in the filesystem's write funtion ?

It would be of great help if anybody could throw some ideas.

Sorry for sending the e-mail without subscribing to the list. Please
cc me while replying back to this e-mail.

thanks
-santi
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
const struct file_operations struct definition, santi mondal, (Tue Sep 9, 12:38 am)