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
好久沒有寫文章了,最近比較忙了,論文、實習……一堆事情,廢話少說,直奔主題 今天來談談最近做的一個東西,在用的freescale Imx27中架一個WEB server ,其實就是一個簡單的B/S架構了。 首先,既然是一個WEB server
Time of Update: 2018-12-04
struct buffer_head { char * b_data; /* pointer to data block (1024 bytes) */ unsigned long b_blocknr; /* block number */ unsigned short b_dev; /* device (0 = free) */ unsigned char b_uptodate; unsigned char b_dirt; /* 0-clean,1-dirty */ unsigned
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.準備編譯 ko 的 linux 環境: 本人使用 ubuntu 9.10.2.查看系統的版本: 使用 uname -r 命令, 本人系統是 2.6.31-22-generic.3.安裝核心標頭檔: sudo apt-get install linux-headers-`uname -r` 本人使用: sudo apt-get install linux-headers-2.6.31-22-generic. 可能會得到下面的資訊: linux-headers-2.6.31-
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
====本文系本站原創,歡迎轉載! 轉載請註明出處:http://blog.csdn.net/yyplc====Linux通過以下函數來註冊中斷以及中斷相關的入口函數handle,只有先註冊IRQ,才能正常使用。int set_irq_chip(unsigned int irq, structirq_chip *chip)static inline void set_irq_handler(unsigned intirq, irq_flow_handler_t handle)static
Time of Update: 2018-12-04
====本文系本站原創,歡迎轉載! 轉載請註明出處:http://blog.csdn.net/yyplc====從上面四篇介紹文章中,已經清楚了串口裝置與串口驅動實現的各層次關係流程。是一種從上而下的關係,從第二篇的層次流程圖中可以看出。之前說過串口裝置是一種platform device,下面看看串口作為platform device的實現細節。串口的硬體平台實現smdk2440_map_io()初始化入口:static void __init smdk2440_map_io(void){
Time of Update: 2018-12-04
本文系itspy原創,複製/轉載請盡量標明原出處http://blog.csdn.net/yyplc/article/details/7010536,謝謝!關於linux動態連結共用庫(如何解決應用程式跑不起來not found等問題) 所謂linux中的Share Libraries和Dynamic linking扮演的角色類似Windows
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
#!/bin/sh############### Generate numbers UA's CSV file for sipx to import ######csvfile=test-$(date +%Y%m%d).csvE_NOARGS=65number=1if [ -z "$3" ]thenecho "Usage: `basename $0` start_call_number number_count sip_password"echoexit $E_NOARGSfiif [ -f $
Time of Update: 2018-12-04
在兩台機器的兩個使用者之間建立安全的信任關係後,可實現執行scp命令時不需要輸入使用者密碼。1. 在機器Client上root使用者執行ssh-keygen命令,產生建立安全信任關係的認證。[root@Client root]# ssh-keygen -b 1024 -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa): <–
Time of Update: 2018-12-04
ntp服務分server跟client,現場四台伺服器,選擇一台作為server端,其他三台做client端,例如18.2.4.4為ntpServer,其他伺服器為ntpClientntpServer端1.ssh登入伺服器,進入/etc目錄下,建議先將ntp.conf檔案備份,再修改ntp.conf檔案,只保留以下內容server 127.127.1.0fudge 127.127.1.0 stratum 8restrict 18.2.4.0 mask 255.255.254.0
Time of Update: 2018-12-04
Linux帳號與身份管理 1. linux帳號與使用者組使用者識別碼:UID與GID雖然我們平時在登入linux主機的時候,會輸入帳號,但是linux並不會直接認識我們的帳號,它認識的僅僅是ID。ID是一串數字,儲存在/etc/passwd中。而帳號僅僅是為了方便我們記憶而已。Linux一共有兩種ID,即UID和GID,UID是使用者身份的標識,GID是群組的標識,它存在/etc/shadow中。 2.
Time of Update: 2018-12-04
Linux開機流程分析與Grub引導程式開機,對於我們每個人來說,是簡單得不能再簡單得事,可是,整個開機的過程會經曆怎樣一個流程呢?一般來說,linux的開機大致上經曆以下的流程:1. 載入BIOS的硬體資訊,進行自檢,並依據設定獲得第一個啟動裝置2. 讀取並執行啟動裝置內的MBR的boot
Time of Update: 2018-12-04
select系統調用是用來讓我們的程式監視多個檔案控制代碼(file descriptor)的狀態變化的。程式會停在select這裡等待,直到被監視的檔案控制代碼有某一個或多個發生了狀態改變。 檔案在控制代碼在Linux裡很多,如果你man某個函數,在函數傳回值部分說到成功後有一個檔案控制代碼被建立的都是的,如man socket可以看到“On success, a file descriptor for the new socket is returned.”而man 2
Time of Update: 2018-12-04
0.11核心維護著3個終端,一個顯示器和鍵盤,另外兩個是串口1,2.
Time of Update: 2018-12-04
1. SMP 硬體體繫結構:對於 SMP 最簡單可以理解為系統存在多個完全相同的 CPU ,所有 CPU 共用匯流排,擁有自己的寄存器。對於記憶體和外部裝置訪問,由於共用匯流排,所以是共用的。 Linux 作業系統多個 CPU 共用在系統空間上映射相同,是完全對等的。 由於系統中存在多個 CPU ,這是就引入一個問題,當外部裝置產生中斷的時候,具體有哪一個 CPU 進行處理?為此, intel 公司提出了 IO APCI 和 LOCAL APCI 的體繫結構。IO
Time of Update: 2018-12-04
1. 在redhat系統的profile檔案中,有如下內容:#path manipulationif [`id -u` = 0];then pathmunge /sbin pathmunge /usr/sbin pathmunge /usr/local/sbin# pathmunge /opt/EmbedSky/crosstool_3.4.5/gcc-3.4.5-glibc-2.3.6/arm-linux/bin pathmunge
Time of Update: 2018-12-04
1.系統的日誌維護 ◆syslog 這個服務程式太重要了,大部分的系統維護都會用到它,也就是網路或系統管理員經常用到的log 檔案。daemon在執行時其實是執行兩個程式:syslogd和klogd,介紹如下,其分別負責不同種類的log,但全部的資訊在系統剛開完機之後,會全部存放在/var/log/message。klogd 先介紹klogd是因為當一開始寫入/var/log/message時,klogd所記錄的資訊會比syslogd