get_user <-> scsi-idle

Ben Craft (bcraft@unix1.sncc.lsu.edu)
Sat, 25 Jan 1997 12:19:01 -0600


hello all,
i'm trying to hack scsi-idle to work with 2.1.22. between 2.0.x and 2.1.x,
get_user changed at least from having one argument to having two arguments.

the code segment, that works with 2.0.xx, is

+ if (get_user((long *) arg))
+ scsi_cmd[4] = 1;
+ else
+ scsi_cmd[4] = 0;
+

could someone recomend a rewrite for 2.1.x? also, a brief description of
what is going on here would be appreciated. specifically, what is the
difference in the functioning of the old and new get_user? the code is
simply too deep for me to read.

regards,
ben.