linux driver func
文章平均质量分 74
linux driver func
wmzjzwlzs
这个作者很懒,什么都没留下…
展开
-
yield_task_dl
**//**/(rq);/**//**/u64 now;if (!return;/**/return;curr->return;/**/rq,&curr->dl);} else {throttle:if (!/**/原创 2024-10-20 14:34:39 · 801 阅读 · 0 评论 -
cputime_adjust
**/goto out;/**/update:/**//**/out:原创 2024-10-20 14:25:00 · 322 阅读 · 0 评论 -
tick_sched_timer
**/if (regs)(ts, regs);else/**//**/#endif/** process.*/void#endif/**/voidreturn;return;return;else/**/int index;原创 2024-10-20 13:54:45 · 419 阅读 · 0 评论 -
v4l2_subdev_init_finalize
***/#define})intstate =return 0;int ret;if (!state)if (!if (!goto err;ret =sdpadinit_cfg, state);goto err;err:原创 2023-08-27 17:58:23 · 219 阅读 · 0 评论 -
phy_mipi_dphy_get_default_config
**/if (!cfg)/**/return 0;原创 2023-08-27 17:54:58 · 412 阅读 · 0 评论 -
of_node_init
endifnode->fwnode.ops = &;= {structfwnode;#endif#endif。原创 2023-08-27 17:48:40 · 185 阅读 · 0 评论 -
send_sig
intsend_sigreturn/**/int/**/if (!returnintret =return ret;static int*/force =!*/*/if (!returnstatic intif (!goto ret;/**/goto ret;/**/原创 2023-07-20 12:35:08 · 128 阅读 · 0 评论 -
do_notify_resume
**/do {schedule();} else {();/**/void(void)/**/if (!return;();bl#endif/*原创 2023-07-15 15:24:02 · 365 阅读 · 0 评论 -
dma_alloc_wc
returnvoid *cpu_addr =elsevoid *if (!return。原创 2023-07-14 22:00:59 · 654 阅读 · 0 评论 -
kmalloc
***/kmalloc#endifreturnif (!index)#endifget_order(size);return/*** ...*/get_orderif (!size)return 0;size--;#else。原创 2023-07-14 21:35:13 · 285 阅读 · 0 评论 -
phy_polling_mode
if (!dev);;don't*/int i;for (i = 1;i++) {continue;if (ret)break;} else {if (ret) {return dev;/***/voidbreak;break;原创 2023-07-12 17:05:48 · 197 阅读 · 0 评论 -
nanosleep
nanosleepif (!returnlongu64 slack;slack = 0;ret =(&t, mode);if (ret!goto out;goto out;out:return ret;void/** expiry.*/;if (task)(task);原创 2023-07-11 18:31:26 · 239 阅读 · 0 评论 -
do_signal
** mistake.*/do_signal/* Whee!if (r0)} else {if (r0) {break;caseregs->r0 =;break;voiddo {schedule();} else {do_signalr0 = 0;} else {/***/原创 2023-07-11 13:08:17 · 132 阅读 · 0 评论 -
handle_irq
_irq_svc:svc_entry/**/.macroblr x1.endmint __inithandle_irq;return 0;#endif/**/voidhandle_irq(int irq)/**/if (!irq);return;irq_enter();(desc);irq_exit();原创 2023-06-21 14:23:59 · 244 阅读 · 0 评论 -
kmem_cache_alloc
***/void *slab_allocreturn ret;slab_allocvoid *objp;cachep))objp =return。原创 2023-06-21 14:02:29 · 336 阅读 · 0 评论 -
kmem_cache_create
***/returnctor);/***/int err;if (err) {/**/if (!usersize)if (s)if (!if (err) {name, err);else {name, err);原创 2023-06-21 13:57:17 · 250 阅读 · 0 评论 -
pagecache_get_page
***/repeat:if (!page)if (!} else {*/no_page:if (!int err;if (!page)/**/原创 2023-06-14 17:43:59 · 684 阅读 · 0 评论 -
do_dentry_open
static intint error;return 0;if (error)if (error)if (!open)if (error)if (!/**/return 0;原创 2023-06-14 17:38:54 · 788 阅读 · 0 评论 -
irq_exit
voidirq_exit(void)#else#endifif (!();*/原创 2023-06-14 17:13:58 · 99 阅读 · 0 评论 -
__hrtimer_run_queues
intint i;/**//**/for (i = 0;i++) {/**/();return 0;/**/(void)if (!return;/**/voidBUG_ON(!retry:/**/if (!/**/*/if (!原创 2023-04-09 20:20:01 · 361 阅读 · 0 评论 -
memblock
RESERVEDMEM_OF_DECLARE(cma, "shared-dma-pool", rmem_cma_setup);RESERVEDMEM_OF_DECLARE(dma, "shared-dma-pool", rmem_dma_setup);early_init_dt_scan_memory-->memblock_addearly_init_dt_reserve_memory_arch-->memblock_reserve[ 0.000000] memblock_reserve+0x38/0xdc原创 2023-03-10 22:15:51 · 77 阅读 · 0 评论 -
rpmsg
vnet根据rpmsg drivers利用rpmsg device通讯。parse_fw中的内存使用ioremap_wc,无cache.原创 2022-12-31 21:08:09 · 973 阅读 · 0 评论 -
futex_wait futex_wake
{= 0)}/**/do_futex}longdo_futex{if (!}}futex_wait}}futex_wait{if (!bitset)}retry:/**/原创 2022-11-29 21:47:58 · 721 阅读 · 0 评论 -
__set_current_state
/cpu运行队列中删除任务。原创 2022-11-26 22:29:21 · 588 阅读 · 0 评论 -
CONFIG_DEVTMPFS_MOUNT
mount_dev= 1;#else#endif{mount_dev}/***/int{if (!mount_dev)if (!thread)else}/**/(void){}/***/}}= 0 ||}out:("dev");}原创 2022-11-26 21:56:42 · 304 阅读 · 0 评论 -
early_init_dt_scan_memory
***/{", NULL);int l;memory")!= 0)}}{}if (!}}}}}}/***** Return:*/{}/** t,*/};原创 2022-11-23 22:53:43 · 441 阅读 · 0 评论 -
usb_gadget_probe_driver
configfs:{if (!name)if (!}}}err:}legacy:int{if (!driver ||!if (!}int{usb_udcif (!driver ||!ret)}}}if (!}原创 2022-11-23 22:47:19 · 653 阅读 · 0 评论 -
filp_open
*****/{if (!}}原创 2022-11-11 23:57:56 · 500 阅读 · 0 评论 -
clock_gettime
{if (!kc)clock_getif (!}原创 2022-11-11 23:48:04 · 323 阅读 · 0 评论 -
clockid_to_kclock
{}}[] = {};= {,};{err =(id, &cd);else}{(id));if (!fp)out:}{}fget{__fget}__fget{loop:}}app:原创 2022-11-11 23:41:24 · 351 阅读 · 0 评论 -
vector_irq
*****/.endif@@@@@@原创 2022-10-23 19:26:25 · 86 阅读 · 0 评论 -
setup_irq_thread
中断线程默认优先级也挺高的。原创 2022-10-09 19:59:11 · 244 阅读 · 0 评论 -
dma_cache_maint_page
dma_cache_maint_page(page, off, size, dir, dmac_map_area);dma_cache_maint_page(page, off, size, dir, dmac_unmap_area);static void dma_cache_maint_page(struct page *page, unsigned long offset, size_t size, enum dma_data_direction dir, void (*op)(con原创 2022-06-19 21:38:26 · 359 阅读 · 0 评论 -
dma_buf_fops
static const struct file_operations dma_buf_fops = { .release = dma_buf_file_release, .mmap = dma_buf_mmap_internal, .llseek = dma_buf_llseek, .poll = dma_buf_poll, .unlocked_ioctl = dma_buf_ioctl,#ifdef CONF原创 2022-06-18 13:54:16 · 400 阅读 · 0 评论 -
ioremap
#define ioremap(addr, size) __ioremap((addr), (size), __pgprot(PROT_DEVICE_nGnRE))#define ioremap_nocache(addr, size) __ioremap((addr), (size), __pgprot(PROT_DEVICE_nGnRE))#define ioremap_wc(addr, size) __ioremap((addr), (size), __pgprot原创 2022-06-11 16:28:24 · 220 阅读 · 0 评论 -
dma_buf_export
/** * DOC: dma buf device access * * For device DMA access to a shared DMA buffer the usual sequence of operations * is fairly simple: * * 1. The exporter defines his exporter instance using * DEFINE_DMA_BUF_EXPORT_INFO() and calls dma_buf_export原创 2022-06-10 22:58:27 · 596 阅读 · 0 评论 -
ion_mmap
static int ion_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma){ struct ion_buffer *buffer = dmabuf->priv; int ret = 0; if (!buffer->heap->ops->map_user) { pr_err("%s: this heap does not define a method for mapping to userspace\原创 2022-06-10 22:54:53 · 169 阅读 · 0 评论 -
ion_dma_buf_begin_cpu_access
static int ion_dma_buf_begin_cpu_access(struct dma_buf *dmabuf, enum dma_data_direction direction){ struct ion_buffer *buffer = dmabuf->priv; void *vaddr; struct ion_dma_buf_attachment *a; int ret = 0; /* * TODO原创 2022-06-10 22:52:00 · 275 阅读 · 0 评论 -
hwspin_lock_timeout
/*** hwspin_lock_timeout() - lock an hwspinlock with timeout limit* @hwlock: the hwspinlock to be locked* @to: timeout value in msecs** This function locks the underlying @hwlock. If the @hwlock* is already taken, the function will busy loop wa...原创 2022-04-26 11:31:29 · 371 阅读 · 0 评论 -
pci_enable_device_mem
/*** pci_enable_device_mem - Initialize a device for use with Memory space* @dev: PCI device to be initialized** Initialize device before it's used by a driver. Ask low-level code* to enable Memory resources. Wake up the device if it was suspen...原创 2022-04-07 22:35:18 · 1004 阅读 · 0 评论