Time of Update: 2018-12-04
====本文系本站原創,歡迎轉載! 轉載請註明出處:http://blog.csdn.net/yyplc====回顧一下上文,s3c2440串口底層驅動圍繞三個資料結構展開:UART特定的驅動程式結構定義:struct uart_driver s3c24xx_uart_drv;UART連接埠結構定義: struct uart_port s3c24xx_serial_ops;UART相關操作函數結構定義: struct uart_ops
Time of Update: 2018-12-04
====本文系本站原創,歡迎轉載! 轉載請註明出處:http://blog.csdn.net/yyplc====註冊完成之後,裝置與驅動是如何串連的呢? 原來在driver_register()註冊中已經進行裝置串連了。串口是一種platform裝置,在體系架構setup_arch()中完成裝置註冊,而且裝置的註冊先於驅動註冊,最終串口裝置與驅動的串連在driver_register() -->bus_add_driver()中完成。int bus_add_driver(struct
Time of Update: 2018-12-04
1.c code: #include <linux/module.h>#include <linux/types.h>#include <linux/fs.h>#include <linux/errno.h>#include <linux/mm.h>#include <linux/sched.h>#include <linux/init.h>#include
Time of Update: 2018-12-04
1.c code: #include <linux/module.h>#include <linux/types.h>#include <linux/fs.h>#include <linux/errno.h>#include <linux/mm.h>#include <linux/sched.h>#include <linux/init.h>#include
Time of Update: 2018-12-04
1.c code: #include <linux/init.h>#include <linux/module.h>MODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){ printk(KERN_ALERT "hello world enter/n"); return 0;}static void hello_exit(void){ printk(KERN_ALERT "hello
Time of Update: 2018-12-04
net_util.c #define WIRED_DEV "eth0" #define WIRELESS_DEV "ra0" #define PPPOE_DEV "ppp0"#define DEBUG_PRT(fmt, arg...) printf(fmt,##arg)/** * get ip address. * @param net_
Time of Update: 2018-12-04
在調試區域網路內通過UDP協議擷取其他裝置IP地址時,伺服器使用UDP 廣播後, 用戶端裝置無響應. 先研究一下正常情況下, UDP廣播通訊方法. 參考了網路上一寫資料. 代碼整理如下:伺服器端向: 255.255.255.255:6023發送UDP廣播:serverUDP.c#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h&
Time of Update: 2018-12-04
參考網路資料,經整理驗證ok.#include <sys/socket.h>#include <sys/ioctl.h>#include <linux/if.h>#include <string.h>#include <stdio.h>int net_detect(char* net_name){ int skfd = 0; struct ifreq ifr; struct sockaddr_in *pAddr =
Time of Update: 2018-12-04
核心版本:2.6.33.4switch_to宏定義在System.h (arch\x86\include\asm)中,全文如下:/* * Saving eflags is important. It switches not only IOPL between tasks, * it also protects other tasks from NT leaking through sysenter etc. */#define switch_to(prev, next, last) \do {
Time of Update: 2018-12-04
Overview of Linux memory management 32-bit architectures can reference 4 GB of physical memory (2^32). Processors that have an MMU (Memory Management Unit) support the concept of virtual memory: page tables are set up by the kernel which map
Time of Update: 2018-12-04
1、xargsxargs比較實用的應用 $ ls | xargs -t -i mv {} {}.bak -i 選項告訴 xargs 用每項的名稱替換 {}。 參數解析:t-----------------先把命令列印出來再執行i------------------用檔案名稱替換{} 刪除數量比較多的檔案 ls | xargs -n 20 rm -fr 參數解析:n---------------------n 數字
Time of Update: 2018-12-04
以下所有的命令均在aix6.1.0.0下通過(查看aix版本資訊的命令為oslevel)1、chown參考網站http://baike.baidu.com/view/1229019.htm 使用:chown beps:beps
Time of Update: 2018-12-04
目前在開發的一套軟體,使用OpenGL繪製大量圖片,圖片是在運行過程中動態根據需要載入進來的,在我的X200下,WindowsXP中運行該程式時,每次調用glTexImage2D()時,都感覺畫面有明顯的停頓感,而在Ubuntu8.10下,則絲毫感覺不到,系統運行異常的平滑。不過在Ubuntu下需要關閉Compiz,否則程式關閉時,原始案頭不會完全重新整理,會有部分程式畫面殘留在上面。
Time of Update: 2018-12-04
/usr/tmp下 mysql-4.1.7.tar.gz # cd /usr/tmp# tar zvxf mysql-4.1.7.tar.gz# cd mysql-4.1.7# ./configure --prefix=/usr/local/mysql# make# make install配置mysql:# cd /usr/local/mysql/bin# mkdir –p /data/mysql //建立一個目錄來存放資料來源# ./mysql_install_db --datadir=/
Time of Update: 2018-12-04
====本文系本站原創,歡迎轉載! 轉載請註明出處:http://blog.csdn.net/yyplc====在分析ARM-Linux s3c2440中UART的時有必要先瞭解 s3c2440A中串口的硬體知識。也就是本文----硬體篇:S3c2440A串口提供三個獨立的非同步串列通訊I/O連接埠(asynchronousserial I/O ports)。每一個串口均可以以普通中斷方式或者DMA方式進行資料收發,採用系統時鐘時,最大速率為115.2kbps.如果採用外部時鐘(UEXTCLK)
Time of Update: 2018-12-04
下面來說說如何用不用訊息佇列來進行進程間的通訊,訊息佇列與具名管道有很多相似之處。有關具名管道的更多內容可以參閱我的另一篇文章:Linux處理序間通訊——使用具名管道一、什麼是訊息佇列訊息佇列提供了一種從一個進程向另一個進程發送一個資料區塊的方法。
Time of Update: 2018-12-04
著作權聲明:原創作品,允許轉載,轉載時請務必以超連結形式標明文章原始出版、作者資訊和本聲明。否則將追究法律責任。http://blog.csdn.net/mayongzhan - 馬永占,myz,mayongzhan 距離第一個版本已經有一年了。修正了幾個錯誤的地方,還有取消了某些lib的安裝,因為centos有,所以相關的lib安裝我都沒有去尋找錯誤。 最終安裝的只有mysql+apache+php系統裡內建了zlib libxml2 libxslt libcurl
Time of Update: 2018-12-04
網上找的應用執行個體,給大家做參考,linux to linux. 考慮到伺服器資料的安全,我考慮增加一台備份伺服器,通過資料同步,達到較好的冗餘。 linux下有非常好的一個命令rsync可以實現差異備份,下面就說說它的用法: ▲合適系統:紅旗DC 4.1 or 5.0或其他linux、FreeBSD系統 ▲測試環境:紅旗DC 5.0 一、通過rsh或ssh命令 在沒有建立rsync伺服器的情況下,我們可以利用rsync命令直接進行快速的差異備份: CODE: 命令格式:
Time of Update: 2018-12-04
想在你的 Linux 案頭上添加漂亮的日曆嗎?使用 Rainlendar 案頭行事曆程式只需幾個簡單的步驟就可辦到。此外,你也可以使用 Rainlendar 來記錄重要的事件和待做事項。漂亮的案頭日曆下載 Rainlendar,目前是 2.2 版,我們以下載 Lite 版為例:wget -c http://www.rainlendar.net/download/Rainlendar-Lite-2.2.tar.bz2 解開 Tarball 檔案:tar jxvf Rainlendar-Lite-2
Time of Update: 2018-12-04
部分1: 部分2: