Time of Update: 2018-12-05
linux中用shell擷取昨天、明天或多天前的日期:在Linux中對man date -d 參數說的比較模糊,以下舉例進一步說明:# -d, --date=STRING display time described by STRING, not `now’[root@Gman root]# date -d next-day +%Y%m%d #明天日期20091024[root@Gman root]# date -d last-day +%Y%m%d
Time of Update: 2018-12-05
1.
Time of Update: 2018-12-05
1. 函數說明pipe(建立管道):1) 標頭檔 #include<unistd.h>2) 定義函數: int pipe(int filedes[2]);3) 函數說明: pipe()會建立管道,並將檔案描述詞由參數filedes數組返回。 filedes[0]為管道裡的讀取端 filedes[1]則為管道的寫入端。4) 傳回值: 若成功則返回零,否則返回-1,錯誤原因存於errno中。 錯誤碼:
Time of Update: 2018-12-05
:http://sourceforge.net/projects/jnotify/關於JNotify的使用說明,從下載的jnotify-lib-0.94.zip中解壓出的readme檔案的前兩行寫的很清晰,如下:JNotify works on Linux with INotify support (Tested on 2.6.14), Mac OS X 10.5 or higher (Tested on 10.6.2), and on Windows XP/2K/NT (Tested on
Time of Update: 2018-12-05
三角運算(%i1) trigexpand(sin(10*x+y));(%o1) cos(10 x) sin(y) + sin(10 x) cos(y)(%i2) trigexpand(sin(2*x));(%o2) 2 cos(x) sin(x)(%i3) trigsimp(2*cos(x)^2+sin(x)^2); 2(%o3)
Time of Update: 2018-12-05
作為 Linux 作業系統核心的 Kernel 最新穩定版 2.6.24 在今日得以發布。根據 Kernel Newbies 網站的描述,Linux Kernel 2.6.24 改善了 CFS、針對 x86-64、PPC、UML、ARM、MIPS 等架構添加了 Tickless 支援、新增了無線驅動程式及配置介面、引入了 Anti-fragmentation 補丁、使 MMC 層獲得了 SPI/SDIO 支援、添加了 USB authorization、per-device dirty
Time of Update: 2018-12-05
我認為作為嵌入式Linux開發人員,要非常熟悉的幾個開源項目: 1 d-bus 2 gstreamer3 gconf4 GNOME Power manager5 mesa6 libxml7 evolution8 gimp9 GNOME VFS花幾個月乃至一年的時間去分析,理解,運用這裡面的開源項目,相信你會在嵌入式Linux產品開發過程中會非常得心應手的。當然要注意和實際的研發聯絡在一塊,同時加快運用在項目中。
Time of Update: 2018-12-05
1 Maemo introduction:http://s3.amazonaws.com/ppt-download/maemo-introduction-1196753349274453-3.ppt?Signature=8BL7VnaQPs5wVOERsx%2BWptidVhg%3D&Expires=1203763854&AWSAccessKeyId=1Z5T9H8PQ39V6F79V8G2#300,1,投影片 12 Maemo development
Time of Update: 2018-12-05
lrz http://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz 這段時間用windows和linux之間互動,由於測試伺服器不允許串連外網,經常需要傳輸檔案,一般我用的傳輸檔案方式有3種 1. samba (用於自動發布)2. vsftpd (大檔案傳輸)3. lrz (小檔案) 安裝lrz cd
Time of Update: 2018-12-05
在windows環境下寫linux代碼我在linux下寫代碼時一直找不到方便的工具,vi和emacs雖然提供了自動完成的功能,但是還是沒有vc+visual assistant方便,因此就產生了在windows下 linux代碼的想法,這個企圖曾經被狒狒鄙視為“自做孽,不可活”,不過經過實踐,村長我還是活過來了:-)一、實驗環境1、裝有win2k的機器一台,並裝好了vc6+vs2003+visual assistant+source insight2、裝有linux
Time of Update: 2018-12-05
主講:華清遠見金牌講師,宋寶華老師。 Linux核心和裝置驅動是嵌入式開發中非常重要的部分,學習方法和選擇平台非常重要,下面的內容就是希望能夠給大家在學習方法上有所啟發和協助。 1. 把Linux核心當朋友2. 先會使用它3. Linux核心學習的4個層次4. 走出心理誤區5. 使用vim+cscope+ctags瀏覽Linux核心源碼6. 使用Kernel地圖定位目標代碼7. 分析Linux核心源碼:態度決定一切8. 以Linux核心源碼為中心,堅持學習資源建設9.
Time of Update: 2018-12-05
Linux驅動中的platform 從Linux2.6核心起,引入一套新的驅動管理和註冊機制:platform_device 和 platform_driver 。Linux 中大部分的裝置驅動,都可以使用這套機制,裝置用 platform_device 表示;驅動用 platform_driver 進行註冊。 Linux platform driver 機制和傳統的device driver機制(即:通過 driver_register
Time of Update: 2018-12-05
【Linux裝置驅動程式(第三版)】----ScullScull.c#include <linux/init.h>#include <linux/module.h>#include <linux/moduleparam.h>#include <linux/fs.h>//file_operations, file#include <linux/cdev.h>//cdev#include
Time of Update: 2018-12-05
【Linux裝置驅動程式(第三版)】----驅動調試ProcScull.c#include <linux/init.h>#include <linux/module.h>#include <linux/moduleparam.h>#include <linux/fs.h>//file_operations, file#include <linux/cdev.h>//cdev#include <asm/uaccess.h>/
Time of Update: 2018-12-05
【Linux裝置驅動程式(第三版)】----完成量completioncomplete.c#include <linux/init.h>#include <linux/module.h>#include <linux/sched.h>#include <linux/kernel.h>#include <linux/types.h>#include <linux/fs.h>//file_operations,
Time of Update: 2018-12-05
文章目錄 jit.cMakefile裝載測試卸載 【Linux裝置驅動程式(第三版)】----延遲:讓出處理器jit.c#include <linux/module.h>#include <linux/moduleparam.h>#include <linux/init.h>#include <linux/time.h>#include
Time of Update: 2018-12-05
嵌入式Linux之我行——LCD背光碟機動在2440上的執行個體開發一、開發環境主 機:VMWare--Fedora 9 開發板:Mini2440--64MB Nand 編譯器:arm-linux-gcc-4.3.2二、實現步驟1. 硬體原理圖分析。由原理圖得知LCD的背光是由2440的GPG4口控制的 2. 編寫背光碟機動。檔案名稱為my2440_backlight.c#include <linux/errno.h>#include
Time of Update: 2018-12-05
module.h包含可裝載模組需要的大量符號和函數定義,包含init.h的目的是指定初始化和清除代碼,struct file是在<linux/fs.h>中定義的。註冊字元裝置使用int register_chrdev(unsigned int major, const char *name, struct file_operations *fops);移除字元裝置使用int unregister_chrdev(unsigned int major, const char *name)
Time of Update: 2018-12-05
文章目錄 jit.cMakefile裝載測試卸載 【Linux裝置驅動程式(第三版)】----taskletjit.c#include <linux/module.h>#include <linux/moduleparam.h>#include <linux/init.h>#include <linux/time.h>#include
Time of Update: 2018-12-05
文章目錄 Makefile建立裝置節點裝載卸載 【Linux裝置驅動程式(第三版)】----簡單休眠 Sleepysleepy.c#include <linux/init.h>#include <linux/module.h>#include <linux/sched.h>#include <linux/kernel.h>#include