Commit eb6edad3 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

mpt fusion: convert to seq_file

Convert everything except ->proc_info() stuff, it is done within separate
->proc_info path series.

Problem with ->read_proc et al is described here commit
786d7e16 "Fix rmmod/read/write races in
/proc entries"
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Cc: Eric Moore <Eric.Moore@lsi.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d2367006
This diff is collapsed.
......@@ -419,31 +419,6 @@ typedef struct _VirtDevice {
#define MPT_TARGET_FLAGS_RAID_COMPONENT 0x40
#define MPT_TARGET_FLAGS_LED_ON 0x80
/*
* /proc/mpt interface
*/
typedef struct {
const char *name;
mode_t mode;
int pad;
read_proc_t *read_proc;
write_proc_t *write_proc;
} mpt_proc_entry_t;
#define MPT_PROC_READ_RETURN(buf,start,offset,request,eof,len) \
do { \
len -= offset; \
if (len < request) { \
*eof = 1; \
if (len <= 0) \
return 0; \
} else \
len = request; \
*start = buf + offset; \
return len; \
} while (0)
/*
* IOCTL structure and associated defines
*/
......
Markdown is supported
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