floppy_struct
static struct floppy_struct getprm;
if (copy_to_user(argp, &getprm, sizeof(struct floppy_struct)))
struct floppy_struct getprm;
struct floppy_struct setprm;
struct floppy_struct *floppy;
static int set_geometry(unsigned int cmd, struct floppy_struct *g,
static int get_floppy_geometry(int drive, int type, struct floppy_struct **g)
struct floppy_struct *g;
struct floppy_struct g; /* geometry */
(struct floppy_struct **)&outparam);
offsetof(struct floppy_struct, name));
struct floppy_struct v;
BUILD_BUG_ON(offsetof(struct floppy_struct, name) !=
memset(&v, 0, sizeof(struct floppy_struct));
if (copy_from_user(&v, arg, offsetof(struct floppy_struct, name)))
struct floppy_struct *p;
memcpy(&v, p, offsetof(struct floppy_struct, name));
static struct floppy_struct floppy_type[32] = {
static struct floppy_struct *current_type[N_DRIVE];
static struct floppy_struct user_params[N_DRIVE];
static struct floppy_struct *_floppy = floppy_type;
static struct floppy_struct floppy_type[4] = {
struct floppy_struct **g)
struct floppy_struct *g;
sizeof(struct floppy_struct)))
struct floppy_struct *g;
static struct floppy_struct floppy_type =
sizeof(struct floppy_struct)))
#define FDSETPRM _IOW(2, 0x42, struct floppy_struct)
#define FDDEFPRM _IOW(2, 0x43, struct floppy_struct)
#define FDGETPRM _IOR(2, 0x04, struct floppy_struct)