Re: [PATCH 2/4] ALSA: seq: add an alternative way to handle ioctl requests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Clemens,

On Aug 11 2016 18:08, Clemens Ladisch wrote:
> Takashi Sakamoto wrote:
>> +	if (_IOC_DIR(handler->cmd) == IOC_IN) {
>> ...
>> +		    _IOC_DIR(handler->cmd) == IOC_OUT)
> 
> _IOC_DIR() returns a bit mask in which both _IOC_READ and _IOC_WRITE can
> be set.  IOC_IN, IOC_OUT, and IOC_INOUT are shifted values.
> (see include/uapi/asm-generic/ioctl.h)

Thanks for the correction. Yes, it's my overlook. I should have used
logical OR.


Thanks

Takashi Sakamoto
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux