关于VFS的通用读,我们不做考虑,本文以如下函数为根,往下分析:do_generic_mapping_read(*ppos,*mapping,*desc)本函数的目的是,从磁盘读数据到用户态,先是从*ppos开始的页,一直读到*ppos+desc->count 为止的,这么多个页,然后拷贝desc-...
分类:
其他好文 时间:
2014-07-16 21:53:13
阅读次数:
326
1、c# 创建dll建立C#编写的DLL程序AddDll,项目类型为:类库程序代码:using System;using System.Collections.Generic;using System.Text;namespace AddDll{ public class Add { ...
分类:
编程语言 时间:
2014-07-16 21:30:50
阅读次数:
281
网上找了 好久 没找到好的自己实现了3种1.用clip属性2。用装饰器Adorner3.修改模板1。clip 就是画一个圆角矩形但是这个在listview size 变化时 也要调用这个方法代码如下: 1 using System; 2 using System.Windows; 3 using S...
分类:
其他好文 时间:
2014-07-16 21:24:58
阅读次数:
279
前边看抽象工厂模式时,对反射有些不熟悉,这两天学习了一下,把成果记下来。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;nam...
分类:
其他好文 时间:
2014-07-16 21:11:15
阅读次数:
173
1 using Microsoft.Office.Interop.Word; 2 using System; 3 using System.Collections.Generic; 4 using System.ComponentModel; 5 using System.Data; ...
分类:
其他好文 时间:
2014-07-12 13:30:55
阅读次数:
232
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace C_编辑基础
{
class Person
{
public string Name; //因为Name没有赋值,而它是string类型的,所以它的默认值就是Null
...
分类:
其他好文 时间:
2014-07-11 08:15:47
阅读次数:
184
最近编译 Linux Kernel 被 header 所在的文件骗了,使用命令如下
cd /usr/src/linux-headers-3.11.0-24-generic/
make menuconfig
make
make menuconfig都还是正常
make的时候就缺很多文件,headers 文件夹下面缺很多 src文件
后来经过同事指点,使用了下面的步骤,成功了
sud...
分类:
系统相关 时间:
2014-07-11 08:08:50
阅读次数:
448
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace ConsoleApplication1
{
//枚举的声明:访问修辞符 enum 枚举名:基础类型
public enum e...
分类:
其他好文 时间:
2014-07-11 08:04:47
阅读次数:
211
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Text;...
一:运行前后截图,实现功能将子窗体的lable的text值取出来给父窗体的lable的text二:全部代码a,父窗体using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;...