搜索资源列表
Linux
- 整体功能:如果调用的进程不是一个组的组长时,setsid创建一个新会话。调用进程将成为该新会话的组长,新进程组的组长,并且没有控制终端。-The overall function: if the call process is not a group leader, setsid create a new session. Call process will become the new session of the group leader, the new process group lea
12
- 实现一个简单的shell,实现步骤:(1)在虚拟的shell界面上出现命令提示符($或#); (2)获取用户指令:获取用户在命令提示符后面输入的命令及其参数,并注意命令输入的最大长度; (3)解析指令:对用户输入的命令进行解析,解析出命令名和参数; (4)寻找命令文件:每个命令的执行都必须依靠对应的可执行文件,这些文件的存放路径存放在用户的PATH环境变量里; (5)执行命令:可通过fork( )系统调用创建一个进程来完成执行命令的任务,具体的命令执行用execv( )函
USB-serial-driver
- 这个结构是定义一个USB串行驱动。它提供了所有的的信息USB系列核心代码的需要。如果函数指针定义,然后当TTY端口功能一致的时候USB系列核心代码会叫他们是所谓的天圆。如果他们不被调用,则为通用串行函数来代替。-This structure is defines a USB Serial driver. It provides all of the information that the USB serial core code needs. If the function pointer
sort.cpp
- 写一个函数,输入参数有四个,分别是map<string,float>型数据,整数,float型数组,string型数组。返回结果,将map中的数据按float值进行排序,并将排序后的结果保存到float、string两个数组中,两个数组元素必须对应于map数据。-Write a function, there are four input parameters, are the map <string,float> data, integer, float array,
drv_dv_platform_gpio_a
- 一个简单的led驱动程序,在linux平台下操作的函数。-A simple led driverA simple LED driver, based on the platform of Linux operation function
v4l
- v4l.c摄像头采集驱动程序,包括各种函数,以及yuv转为bmp文件的函数-v4l.c camera capture driver, including a variety of functions, as well as the yuv into the function of the bmp file
findfd
- 目前linux的系统调用中没有可以有效获得当前进程打开的所有文件标识符的函数。所以我实现了nextfd,findfd系统调用,使用bitmap高效率实现。-Linux system calls can access the function of all open files in the current process identifier. So I achieve a nextfd of findfd system calls, the use of bitmap high efficie
shizhong
- 时钟显示,显示时,分,秒,并设置一定的功能-The clock display shows hours, minutes, seconds, and set a certain function
plx_pci
- CAN驱动 基于sja1000芯片,自己写的,还提供makefile文件与各种有关系的模块,与网上流传的大不一样,相当于网卡的功能,接收网络信息-CAN drive based sja1000 chip, with the spread of the Internet, a big difference, is equivalent to the function of the network card and receiving network information
auto-creat-node-num-and-node
- 开发环境Ubuntu10.10 内核源代码版本linux2.6.32.2 交叉编译环境版本V4.4.3 驱动函数说明: 该代码是驱动在加载时自动分配节点号,并且自动创建节点的方法。-Development environment Ubuntu10.10 Kernel source code version linux2.6.32.2 Cross-compiler environment version V4.4.3 Drive function: The co
libhid-0.2.16.tar
- 区别于hidapi的另外一套hid设备操作库,使用略复杂一些,但功能要强大许多-Different from hidapi another set hid equipment operation, you use a little more complicated, but the function powerful
a
- 发送程序与msg1.c类似。在main函数中,删除msg_to_receive声明,代之以buffer[BUFSIZ]。移除消息队列删除代码,并且在running循环中做出如下更改。现在我们调用msgsnd来将输入的文本发送到队列中。 -The sending program msg1.c similar. Delete msg_to_receive statement in the main function, replaced by the buffer [BUFSIZ]. Remove
tengnuo
- 键盘驱动源码,应用程序源码 本驱动是基于中断方式的,在此创建一个等待队列,以配合中断函数使用;当有按键按下并读取到键 值时,将会唤醒此队列,并设置中断标志,以便能通过 read 函数判断和读取键值传递到用户态;当没有按 键按下时,系统并不会轮询按键状态,以节省时钟资源*/ -Keyboard driver source code, the application source code of this driver is interrupt-based approach, in
program
- 编写一段程序,同时父进程创建两个子进程p1和p2;并使子进程p1与子进程p2通过共享存储区相互发送数据(512字节)。 (1)掌握系统调用shmget()、shmat()、shmdt()、shmctl()的使用方法及其功能,理解共享存储区通信原理; (2)系统理解linux 的三种通信机制。 -Write a program, while the parent process creates two child processes p1 and p2 make child
03Dynamic-control-LCD-display
- 利用操作系统控制液晶动态显示各种字符和图片,非常适用于初学者进行试验-Dynamic control LCD display words and images, and through the touch screen function of embedded beginners is a good teaching routines
04programming_clock
- 使用操作系统制作一个时钟,始终能够精确计时,并且带有秒表功能,适用于初学者试验-Using the operating system to produce a clock, always can be timed precisely, and with a stopwatch function, suitable for beginners to test
myMusicPlayer
- 具有下一张,上一张,旋转,放大,删除功能,可以从U盘等外部存储设备读取数据,具有LCD触摸屏,以上功能可以通过触摸屏实现。 -Has a lower one, on one, rotate, zoom, delete function, from the U disk and other external storage device to read data, with LCD touch screen, these functions can be achieved via the to
LINUX_USB
- 本资料是对LINUX下的USB驱动做详细的说明,包括对系统函数的应用-This information is under LINUX USB drive to do a detailed descr iption, including the application of the system function
MDK(ADC)
- TQ2440嵌入式开发板裸机程序,ADS移植到keil上的,开发板的ADC功能,可以将电压转换为数字量在串口上显示,由于是在串口的keil文件移植,所以文件名和工程名没改,但是功能是ADC功能,见谅。-TQ2440 bare metal embedded development board procedures, ADS transplanted to keil on the development board of the ADC function, the voltage can be co
key_driver.tar
- 可以检测按键长按还是短按功能的一个按键驱动,里面实现了一个小型的状态机,蛮不错的哦。-Keys can be detected long press or short press function a key driver which implements a small state machine, Oh, pretty good.