+int procfile_write(struct file *file, const char *buffer, unsigned long count, void *data) {
+ if (!once_only) {
+ once_only=1;
+ if (init_probes()==-1)
+ printk(KERN_CRIT "Could not install procprotect probes. Reload module to retry.");
+ else
+ printk(KERN_CRIT "Activated transforward module");
+ }
+ return count;
+}
+static const struct file_operations transforward_fops = {
+ .owner = THIS_MODULE,
+ .write = procfile_write
+};
+
+static int __init transforward_init(void)
+{
+ int ret = 0;
+ printk("Transforward: starting transforward version %s.\n",
+ VERSION_STR);
+
+ proc_entry = proc_create("transforward", 0644, NULL, &transforward_fops);
+ return ret;
+}
+