参照元

説明

引数

返り値

参考

実装

static int uvc_ioctl_reqbufs(struct file *file, void *fh,
                             struct v4l2_requestbuffers *rb)
{
        struct uvc_fh *handle = fh;
        struct uvc_streaming *stream = handle->stream;
        int ret;
        ret = uvc_acquire_privileges(handle);
        if (ret < 0)
                return ret;
        mutex_lock(&stream->mutex);
        ret = uvc_request_buffers(&stream->queue, rb);
        mutex_unlock(&stream->mutex);
        if (ret < 0)
                return ret;
        if (ret == 0)
                uvc_dismiss_privileges(handle);
        return 0;
}

コメント


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2016-02-09 (火) 11:09:57