Question: What other ioctl ( ) operations ( at least 5 ) might be useful for a scanner? ioctl ( ) : / * ioctl takes
What other ioctl operations at least might be useful for a scanner?
ioctl:
ioctl takes in a command and arguments
there is only one command, which is used to rewrite the seperators
When the command is called flag will be set so the next write can rewrite the seperators
static long ioctlstruct file filp
unsigned int cmd used for rewriting seperators
unsigned long arg arguments used for if cmd had args
File file filpprivatedata;
if cmd set seperators
fileflag true; set flag to true
else
do nothing, seperators are not being rewritten
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
