• Stephen Hemminger's avatar
    [netdrvr sk98lin] use seq_file for /proc · defce4ed
    Stephen Hemminger authored
    Replace proc_read with seq_file interface which is much cleaner.
    
    Also, instead of searching the list of devices looking for the
    name which is slow and would break if interface name changes;
    store a pointer to device in the proc entry, and retrieve
    it from the information saved by single_open.
    
    Formatting and other behaviours are retained.
    defce4ed
skproc.c 9.29 KB