EmbLogic's Blog

ioctl

Create a file that contain all macros, that is used by by user as a command this file called ioctl.h
After creating ioctl.h ,you create a file ioctl.c that file work for kernel space, that file contain all command specific work.
in application level you give a call to function ioctl() and give the command, this command goto the driver and do the work as your command.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>