cregit-Linux how code gets into the kernel

Release 4.11 drivers/usb/gadget/u_f.c

/*
 * u_f.c -- USB function utilities for Gadget stack
 *
 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
 *              http://www.samsung.com
 *
 * Author: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#include "u_f.h"
#include <linux/usb/ch9.h>


struct usb_request *alloc_ep_req(struct usb_ep *ep, size_t len) { struct usb_request *req; req = usb_ep_alloc_request(ep, GFP_ATOMIC); if (req) { req->length = usb_endpoint_dir_out(ep->desc) ? usb_ep_align(ep, len) : len; req->buf = kmalloc(req->length, GFP_ATOMIC); if (!req->buf) { usb_ep_free_request(ep, req); req = NULL; } } return req; }

Contributors

PersonTokensPropCommitsCommitProp
Andrzej Pietrasiewicz7481.32%125.00%
Felipe F. Tonello1718.68%375.00%
Total91100.00%4100.00%

EXPORT_SYMBOL_GPL(alloc_ep_req);

Overall Contributors

PersonTokensPropCommitsCommitProp
Andrzej Pietrasiewicz8279.61%120.00%
Felipe F. Tonello2019.42%360.00%
Felipe Balbi10.97%120.00%
Total103100.00%5100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.