lkml.org 
[lkml]   [2000]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    Subject[RFC] ioctl(2) return value

    In ALSA we use the return value from ioctl as a simple way to return a
    positive number to user space (if the return value is less than 0 we got
    error, of course)

    We got the doubt that this break some unknown standards or some linux
    conventions or Linus taste (at a first glance I'm unable to find
    precedents inside kernel tree).

    I've looked Singe UNIX Specification, Version 2 and there this seems
    perfectly acceptable.

    I'd like very much to have some feedback to do the RightThing (tm).

    The alternative of course would be to add a result field inside struct
    passed by pointer to ioctl call.

    --
    Abramo Bagnara mailto:abramo@alsa-project.org

    Opera Unica
    Via Emilia Interna, 140 Phone: +39.0546.656023
    48014 Castel Bolognese (RA) - Italy Fax: +39.0546.656023

    ALSA project is http://www.alsa-project.org
    sponsored by SuSE Linux http://www.suse.com

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

    \
     
     \ /
      Last update: 2005-03-22 12:39    [W:0.023 / U:0.060 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site