参照元

説明

引数

返り値

参考

実装

CONFIG_FW_LOADER または CONFIG_FW_LOADER_MODULE が有効: drivers/base/firmware_class.c

/**
 * request_firmware: - send firmware request and wait for it
 * @firmware_p: pointer to firmware image
 * @name: name of firmware file
 * @device: device for which firmware is being loaded
 *
 *      @firmware_p will be used to return a firmware image by the name
 *      of @name for device @device.
 *
 *      Should be called from user context where sleeping is allowed.
 *
 *      @name will be used as $FIRMWARE in the uevent environment and
 *      should be distinctive enough not to be confused with any other
 *      firmware image for this or any other device.
 *
 *      Caller must hold the reference count of @device.
 *
 *      The function can be called safely inside device's suspend and
 *      resume callback.
 **/
int
request_firmware(const struct firmware **firmware_p, const char *name,
                 struct device *device)
{
        int ret;

        /* Need to pin this module until return */
        __module_get(THIS_MODULE);
        ret = _request_firmware(firmware_p, name, device,
                                FW_OPT_UEVENT | FW_OPT_FALLBACK);
        module_put(THIS_MODULE);
        return ret;
}
EXPORT_SYMBOL(request_firmware);

CONFIG_FW_LOADER と CONFIG_FW_LOADER_MODULE どちらも無効: include/linux/firmware.h

static inline int request_firmware(const struct firmware **fw,
                                   const char *name,
                                   struct device *device)
{
        return -EINVAL;
}

コメント


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS