• David Howells's avatar
    proc: Add a way to make network proc files writable · 564def71
    David Howells authored
    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>
    564def71
proc_fs.h 5.68 KB