Find the answer to your Linux question:
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...
  1. #1
    Just 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

  2. #2
    Just 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)

  3. #3
    Just 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 ?

  4. #4
    Just 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.

  5. #5
    Just Joined!
    Join Date
    Nov 2006
    Location
    Hyderabad
    Posts
    85
    thnk you for good info on ioctl

  6. #6
    Just Joined! lightsycle's Avatar
    Join Date
    Jun 2007
    Location
    Louisville, KY
    Posts
    7

    Question

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...