Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    read call blocks

    im new on writing device driver in kernelspace.
    So i started with writung a small scull driver.

    The problem is, that a write call blocks sthe system.
    I do not know why.

    Here the function.

    ssize_t FS_write(struct file * filp, const char * buf, size_t count, loff_t * f_pos)
    return -1;

    // Tha array is big enough



    return count;


    I dont know what why the driver hangs
    I call
    "Hallo" > /dev/mydriver

    i then i can see that the init is done well.
    After it, the kernel hangs.

    Tank you for help.
    Last edited by user20000; 01-18-2012 at 08:14 PM.

  2. #2
    Okay, sorry i have it now
    The Read call was is well done.

    It hangs on a secial call of the open of my driver.
    I have implemented some personalities and there had beeen a buck while
    chanching the file operations structure.


  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Sometimes the best help is none... Glad you sorted it out.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. $spacer_open
  5. #4

Posting Permissions

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