Re: sys_select

From: willy@thepuffingroup.com
Date: Fri May 19 2000 - 22:43:13 EDT

  • Next message: willy@thepuffingroup.com: "Re: [prepatch] Directory Notification"

    On Wed, May 17, 2000 at 07:28:58PM +0000, Prairie Flower wrote:
    >
    >
    > Hi,.
    >
    > I want to use sys_select from inside the kernel but it is returning
    > -14. here is the call I am making:

    > I belive this error is EFAULT and is resulting from the fact that set
    > has been declared in kernel space. sys_select calls get_fd_set() which
    > has the comment and offending return value:

    yup, you should do:

            mm_segment_t old_fs;
            old_fs = get_fs();
            set_fs(get_ds());
    .. whatever ...
            set_fs(old_fs);

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Fri May 19 2000 - 21:58:25 EDT