Let me know if I'm off base here, but I'm having trouble getting lkcd_config
to work. I'm just learning about linux device drivers so I apologize in
advance for dumb questions.
1) The symptom is that the open works, but all ioctl calls (query and set)
return I/O error. My suspicion is that with a dump driver in the system the
/dev/dump device can no longer be a symbolic link to the swap device. But
the \lkcdutils\README files still describe the setup like this.
2) 3 of the 4 ioctls in the query portion of lkcd_config are passing the
"set" code rather than the "get" code.
3) I'm confused about the file access:
dfd = open(DUMP_DEVICE, O_RDONLY) // opens hard-coded device name
/dev/dump
fd = open(device_name, O_RDONLY) // opens the device name
specified on
the command line
- dfd is used for the device operations, but fd is not, except to get a
dnum. Why is the device name hard-coded?
- the define is opened read-only but "set" ioctls are performed. Is this
OK?
4) When I get the latest set of sources I'm still getting the old "vmdump"
files. Is there a way around this?
Monty VanderBilt
Amazon.com
|