Chinaunix首页 | 论坛 | 博客
  • 博客访问: 783423
  • 博文数量: 127
  • 博客积分: 2669
  • 博客等级: 少校
  • 技术积分: 1680
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-23 11:39
文章分类

全部博文(127)

文章存档

2014年(5)

2013年(19)

2012年(25)

2011年(9)

2010年(25)

2009年(44)

发布时间:2012-12-14 13:55:23

get_cpu() 和 put_cpu() 的定义如下: #define get_cpu()        ({ preempt_disable(); smp_processor_id(); })#define put_cpu()        preempt_enable()所以,在需要禁止任务抢占的区域,要得到cpu id 的话,可以使用 get_cpu()/put_cpu() 函数对, 否则直接使用 smp_processor_id() 即可。#define ......【阅读全文】

阅读(3277) | 评论(0) | 转发(0)

发布时间:2012-12-14 13:54:54

suse11的系统,虚拟机上,加载raid456模块 提示 [17897.668185] raid456: Unknown symbol async_gen_syndrome (err 0) [17897.668422] raid456: Unknown symbol async_raid6_2data_recov (err 0) [17897.668512] raid456: Unknown symbol async_syndrome_val (err 0) [17897.668587] raid456: Unknown symbol async_raid6_datap_recov (err......【阅读全文】

阅读(1059) | 评论(0) | 转发(0)

发布时间:2012-12-14 13:54:47

/**  * struct async_submit_ctl - async_tx submission/completion modifiers  * @flags: submission modifiers  * @depend_tx: parent dependency of the current operation being submitted  * @cb_fn: callback routine to run at operation completion  * @cb_param: parameter for the call......【阅读全文】

阅读(1025) | 评论(0) | 转发(0)

发布时间:2012-12-14 13:54:41

继续分析Async_tx的头文件, /* on architectures without dma-mapping capabilities we need to ensure  * that the asynchronous path compiles away  */ #ifdef CONFIG_HAS_DMA #define __async_inline #else #define __async_inline __always_inline #endif 在没有DMA映射的架构下,使用宏值来保证编译成inline??? /**  * dma_chan_re......【阅读全文】

阅读(1268) | 评论(0) | 转发(0)

发布时间:2012-12-14 13:53:31

Async_tx是Intel设计的,用来为应用提供异步DMA操作API。 见async_tx.c的最前面 core routines for the asynchronous memory transfer/transform api * Copyright 漏 2006, Intel Corporation. * *        Dan Williams <dan.j.williams@intel.com> * *        with architecture consideratio......【阅读全文】

阅读(1069) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

lcmust2011-11-14 08:38

学习..............

回复  |  举报
留言热议
请登录后留言。

登录 注册