Using lex and yacc commands , device driver program needs to communicated to perform ioctl functions.
step 1 : simple driver programmer with ioctl functionality program needs to created.
step2 : lex and yacc with few commands to interact with driver program.