Skip to content
Commit 564def71 authored by David Howells's avatar David Howells
Browse files

proc: Add a way to make network proc files writable



Provide two extra functions, proc_create_net_data_write() and
proc_create_net_single_write() that act like their non-write versions but
also set a write method in the proc_dir_entry struct.

An internal simple write function is provided that will copy its buffer and
hand it to the pde->write() method if available (or give an error if not).
The buffer may be modified by the write method.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 5d9de25d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment