A - Switch Game Problem Description There are many lamps in a line. All of them are off at first. A series of operations are carried out on these lamp ...
分类:
其他好文 时间:
2019-03-17 18:18:02
阅读次数:
161
Let's say we are going to read some files, return the first file which pass the prediction method, this prediction method can be just check whether th ...
分类:
其他好文 时间:
2019-03-10 09:21:45
阅读次数:
142
注册字符驱动的一种老方法:注册一个字符设备的经典方法是使用:int register_chrdev(unsigned int major, const char *name, structfile_operations *fops);这里, major 的主编号, name 是驱动的名子(出现在 / ...
分类:
系统相关 时间:
2019-03-03 20:37:44
阅读次数:
292
字符设备驱动框架 #include <linux/init.h> //定义了module_init#include <linux/module.h> //最基本的头文件,其中定义了MODULE_LICENSE这一类宏#include <linux/fs.h> // file_operations结构 ...
分类:
其他好文 时间:
2019-02-26 11:49:35
阅读次数:
205
Linux Kernel文件系统写I/O流程代码分析(一) 在 "Linux VFS机制简析(二)" 这篇博客上介绍了struct address_space_operations里底层文件系统需要实现的操作,实际编码过程中发现不是那么清楚的知道这里面的函数具体是干啥,在什么时候调用。尤其是写IO相 ...
分类:
系统相关 时间:
2019-02-26 11:48:49
阅读次数:
300
一. 什么是DevOps 是什么? DevOps (英文 Development 和 Operations 的组合)是一组过程、方法与系统的统称,用于促进开发(应用程序 / 软件工程)、技术运营和质量保障( QA )部门之间的沟通、协作与整合。它的出现是由于软件行业日益清晰地认识到:为了按时交付软件 ...
分类:
其他好文 时间:
2019-02-22 16:32:40
阅读次数:
146
Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations permitt ...
分类:
其他好文 时间:
2019-02-13 21:05:49
阅读次数:
171
算法描述: Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations p ...
分类:
其他好文 时间:
2019-02-13 20:53:11
阅读次数:
165
execute typical instruction 1/1,000,000,000 sec = 1 nanosec fetch from L1 cache memory 0.5 nanosec branch misprediction 5 nanosec fetch from L2 cache ...
分类:
移动开发 时间:
2019-02-11 21:29:02
阅读次数:
174
On a broken calculator that has a number showing on its display, we can perform two operations: Double: Multiply the number on the display by 2, or; D ...
分类:
其他好文 时间:
2019-02-11 01:07:39
阅读次数:
202