Time of Update: 2018-12-05
struct device結構體一、定義:linux/include/linux/device.hstruct device { struct klist klist_children; struct klist_node knode_parent; /* node in sibling list */ struct klist_node knode_driver; struct klist_node
Time of Update: 2018-12-05
之前用的是vmware 6.5.0安裝的CentOS5.5, 案頭環境老是崩潰,今天就打算安裝centos6.0。按部就班的安裝之後,最後利用虛擬機器工具建立share
Time of Update: 2018-12-05
一個Linux下支援多種聊天工具的軟體。安裝1. 從http://pidgin.im/下載;2. 解壓:tar -jxvf **.bz2,進入安裝目錄;3. 編譯&指定安裝路徑:./configure --prefix=~/program; 3.1. 出錯,提示:"You must have the GLib 2.0 development headers installed to build." 根據下面的文章
Time of Update: 2018-12-05
計算程式執行的時間.比如我們要對演算法進行時間分析 一、函數法可以使用下面這個函數. /******************************#include <sys/time.h> int gettimeofday(struct timeval *tv,struct timezone *tz); struct timeval { long tv_sec; /* 秒數 */ long tv_usec; /* 微秒數 */ };
Time of Update: 2018-12-05
Waterman提到可能先做porting NFTL to Linux,所以今天下午對Linux下的NFTL以及相關porting工作先research一下。關於NFTL結構上,NFTL仍然屬於MTD中的一部分,在Linux 2.4核心代碼中,mtd下直接和NFTL相關的code file有nftlcore.c和nftlmount.c。同時這兩個檔案也會call MTD相關的function來實現自己的函數功能。NFTL應用沒有很多資料,只有一封非正式的mail:DiskOnChip200
Time of Update: 2018-12-05
-----------------------spirit\spirit\MExpression2.h------------------------------#pragma once#include <string>#include <iostream>#include <cassert>#include <boost/spirit/include/classic_core.hpp>#include
Time of Update: 2018-12-05
簡單C++boost中文手冊目錄 Quick Reference 快速參考 This isn't intended to be a full, detailed reference; nor is it intended to be of any use to readers who aren't already familiar with Spirit. It's just a brief reminder of the syntax and behaviour of each
Time of Update: 2018-12-05
寫下這個題目的時候,感覺好怪異啊......2007.09.03,這個日子將是我生命中很重要的一天:今天早上,我得知自己要當爸爸了!早上08:45,還在公司班車上睡覺,忽然S打電話過來,說的什麼聽不清,只感覺聲音很嚴肅。於是告訴她等我到了公司再打吧。等到了公司,聽到一個很讓我*&^%$~的訊息:她今早測孕顯示兩道線,也就是說,很可能懷孕了!知道之後,只覺得腦子暈暈乎乎的,有點想傻笑——好奇怪的感受啊,我居然要當爸爸了?很開心,不過還是鎮定地打電話指示:下午去醫院檢查一下,確認是不是。開始
Time of Update: 2018-12-05
最近終於把UNIX的聖經《UNIX環境進階編程》給買到手了。今天看看書後,想把書中的原始碼拿出來自己編譯一下看看什麼效果,結果發現竟然不能夠順利的編譯。先看看這個程式清單1-1的內容吧,這個程式是列印一個目錄中的各個檔案的名字,不顯示其他資訊。/* * myls.c * * Created on: 2011-3-20 * Author: cxfeng */#include "apue.h"#include <dirent.h>int main (int
Time of Update: 2018-12-05
boost::xml_parser 處理xml---------debug_settings.xml--------<root> <strage name="asd" alias="13" classId="13.22">r <id>12</id> <name>"jack"</name> <accout>"0001"</accout> </strage>
Time of Update: 2018-12-05
資源OSUbuntu 7.04 (kernel version: 2.6.20-15)ToolChainARM-GCC v3.4.1http://www.handhelds.orgRootFSrootfsosk.tar.bz2http://linux.omap.com/pub/filesystem/rootfsosk.tar.bz2Busyboxbusybox-1.4.2http://www.busybox.net教程OSK5912 Newbie
Time of Update: 2018-12-05
遵循GUN著作權#!/bin/bashMONITOR_FILE="/var/log/messages"MONITOR_LOG_FILE="/var/crontab/anti_scan.log"TABLES="/tmp/anti_scan.pid"tmp="/tmp/anti_scan.pid.tmp"test -e $TABLES || touch $TABLEStest -e $TABLES || touch $tmpwhile read linedo str=`echo
Time of Update: 2018-12-05
Summary本周只有三天工作。討論了VTD,修改了driver code來使用ST-specific ECC algorithm。詳情參考:ST NAND driver on OSK5912的開發過程ECCquestionInOOB.txtUpdateCode.txt周一~二請假周三Felix已經寫好VTD,討論之;周四研究oob幾種類型的關係以及我們應當如何定義。周五更新nand_base.c和osk-nand-flash.c內容,用於支援自訂的ecc;TODO1
Time of Update: 2018-12-05
我的顯卡資訊Radeon Mobility 7500,通過#lshw得到:------------------------------------------------------------ *-display description: VGA compatible controller product: Radeon Mobility M7 LW [Radeon Mobility 7500] vendor: ATI
Time of Update: 2018-12-05
> Translation Module用於: logic addr->phy addr; w/r/d sector> Mapping table: node: 1st level, power on時候build; sector map: 2nd level, 需要的時候build;> Virtual addr = virtual block(maybe multi phy block) + sector(page offset)
Time of Update: 2018-12-05
windows下,通過讀取註冊表擷取使用者定義的資料來源# -*- coding: UTF-8 -*-# 擷取ODBC資料來源列表from tkinter import *from tkinter import ttkimport win32api,win32condef GetODBCdsn(): key = win32api.RegOpenKey(win32con.HKEY_CURRENT_USER, 'SOFTWARE\\ODBC\\ODBC.INI\\ODBC Data
Time of Update: 2018-12-05
在ibm t40上裝的ubuntu 7.04,已經在新立得中升級到最新。插入u盤後,系統沒任何反應,用#lsusb也看不到任何裝置資訊。如果插入usb滑鼠倒是可以識別,正常使用。之前曾經在一個台式機和一台compaq筆記本上安裝過ubuntu,都能正常識別該u盤,也試過別的u盤,可以確認不是u盤的問題。在google上搜尋,好像都沒有人遇到這種問題。別人頂多是不能自動mount,可我這裡好像是根本連硬體都沒認出來?!-------------------- 用dmesg查看usb相關的資訊:[
Time of Update: 2018-12-05
在mtd-util的flash_eraseall中發現這樣的用法:----------------------------------------------------------------#define MEMGETINFO _IOR('M', 1, struct mtd_info_user)...... ioctl(fd, MEMGETINFO, &meminfo)---------------------------------------------
Time of Update: 2018-12-05
編寫一程式,用S3C2410的I2C介面對串列EEPROM 24LC04(I2C介面)進行讀/寫操作,寫入一組資料,然後讀出並顯示出來,檢驗是否正確。 分析:S3C2410的I2C為主裝置,EEPROM的I2C為從裝置,進行的操作為主裝置寫、和主裝置讀。(1)設定I2C控制寄存器1)收發傳輸:IICCON=0b 1 0 1 0 1111 = 0xAF含義:應答使能、時鐘分頻為IICCLK = PCLK /16 、中斷使能、清除中斷標誌、預分頻值取15。2)接收結束傳輸:IICCON=0b 0 0
Time of Update: 2018-12-05
最近使用gvim遇到一個問題,我想使用自訂環境變數$DOC=/home/xx/doc,但是不知道在哪裡定義。現在的總結:1. vi識別系統內容變數的定義;2. 如果把環境變數定義在.bashrc/.bash_profile中,則只能通過在shell中運行vi才可以識別環境變數定義;3. 如果想讓環境變數作為全域定義,可以寫在.profile中;4. 如果沒有.bash_profile,最好不要自己隨便寫一個,因為如果有.bash_profile了可能就不會調用.bashrc內容了(這個沒有實驗,