Results 1 to 6 of 6
hi,
I gone through with ioctl and fcntl.but iam still confusion with that.
could anybody please clarify exact difference between ioctl & fcntl
thanx in advance...
- 08-08-2007 #1Just Joined!
- Join Date
- Nov 2006
- Location
- Hyderabad
- Posts
- 85
fcntl & ioctl
hi,
I gone through with ioctl and fcntl.but iam still confusion with that.
could anybody please clarify exact difference between ioctl & fcntl
thanx in advance
- 08-09-2007 #2Just Joined!
- Join Date
- Jan 2007
- Posts
- 90
fcntl acts on a file descritor to change the way the file is to be handled
like duping the fd, locking file etc.,
IOCTL is to do commands on a device (which links with the kernel device driver)
- 08-10-2007 #3Just Joined!
- Join Date
- Nov 2006
- Location
- Hyderabad
- Posts
- 85
means ioctl only particular to device drivers with out reconfiguring and compiling, can we change the behaviour of the driver with ioctl ?
- 08-10-2007 #4Just Joined!
- Join Date
- Jan 2007
- Posts
- 90
ioctl is a method by which we tell the device driver to do an operation on the device. Say, there are 10 operations possible on a device being implemented in the driver, then, to select what out of the 10 operations to do is done by the ioctl systemcall on the userspace.
- 08-14-2007 #5Just Joined!
- Join Date
- Nov 2006
- Location
- Hyderabad
- Posts
- 85
thnk you for good info on ioctl
- 09-20-2007 #6
I have an ioctl question: I am trying to get kismet to run on suse 10.2, and I get a command not found when it tires to use ioctl for whatever. I have ethereal, did a ./configure && make of the wiretap dir, re-./configure && make && make install for ksimet, because I installed it first before I got ethereal. if I type ioctl at "#" I get command not found. is something missing? or did I not do the proper steps in the proper order?
Thanks
P.S. Using the bash shell


