QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: hlf1099210

求源码,急!谢谢

[复制链接]
 楼主| 发表于 2003-5-26 22:22:17 | 显示全部楼层
[quote:133c74604a="Dragonfly"][quote:133c74604a="hlf1099210"]能给我一个QQ吗?这儿说的有点不清楚,这事我挺急的,谢谢

我的QQ事23768873[/quote]

i have no qq, maybe jjww has[/quote]


can you tell me his qq
i have lots of question to ask .
thanks!
回复

使用道具 举报

发表于 2003-5-26 22:23:12 | 显示全部楼层
i have no qq, so i do not know anybody's qq. i said "maybe jjww has"
回复

使用道具 举报

 楼主| 发表于 2003-5-26 22:28:17 | 显示全部楼层
what my choise is 2)
can you tell me how to do it without fs on it
then how can i read data from certain sectors
回复

使用道具 举报

 楼主| 发表于 2003-5-26 22:29:51 | 显示全部楼层
[quote:af2a993bda="Dragonfly"]i have no qq, so i do not know anybody's qq. i said "maybe jjww has"[/quote]

too bad!
then how can i connect with you ?
i really need your help!
回复

使用道具 举报

发表于 2003-5-26 22:37:08 | 显示全部楼层
do u have msn? if so, tell me via message.
回复

使用道具 举报

发表于 2003-5-26 22:38:27 | 显示全部楼层
jjww, pls move this to another kernel branch, this is nothing to do with kernel source code reading.
回复

使用道具 举报

 楼主| 发表于 2003-5-26 22:48:27 | 显示全部楼层
[quote:5365d00d8f="hlf1099210"]what my choise is 2)
can you tell me how to do it without fs on it
then how can i read data from certain sectors[/quote]

this my last question,can you help me ?

thanks very much!
回复

使用道具 举报

 楼主| 发表于 2003-5-26 22:49:40 | 显示全部楼层
just give me an example ,thanks,thanks,thanks
回复

使用道具 举报

发表于 2003-5-26 22:54:12 | 显示全部楼层
[quote:aa207c13eb="Dragonfly"]jjww, pls move this to another kernel branch, this is nothing to do with kernel source code reading.[/quote]
yes,i think so !
回复

使用道具 举报

发表于 2003-5-26 23:00:10 | 显示全部楼层
hlf1099210, if u choice is 2) then jjww's code is enough, u only need change that /dev/sda to /dev/fd0 or whatever fd u want, and follow the same rule of open, seek, write, and close. that's all.

rambler, u are watering here.  
回复

使用道具 举报

 楼主| 发表于 2003-5-26 23:12:01 | 显示全部楼层
thank you very much!!
回复

使用道具 举报

发表于 2003-5-26 23:16:42 | 显示全部楼层
welcome.

in linux, almost everything is a file. open a /dev/fd0 will open a device file and write directly on it. then u can use lseek to change the offset and read/write directly.
回复

使用道具 举报

 楼主| 发表于 2003-5-26 23:22:46 | 显示全部楼层
jjww's code is good,but i am not very understand in some places.

#define MY_OFFSET   (3 * 512)    /*what  is 3 mean?

thank you
回复

使用道具 举报

发表于 2003-5-26 23:28:53 | 显示全部楼层
his code writes a 512 byte data to 3rd sector, so he need lseek 3*512 byte, see the MY_OFFSET use in lseek.

are u familiar with c, with open/close/lseek/read/write, if not man them one by one and read the help carefully can help u
回复

使用道具 举报

 楼主| 发表于 2003-5-26 23:35:02 | 显示全部楼层
# dd if=/dev/sda of=file skip=3 count=1
# hexdump file
what is them means?

thanks
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-15 19:31 , Processed in 0.073963 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表