how to know a binary or text file and show all the information in file

2007-12-19 Thread C_C_Kuo
Dear all: Could someone tell me how to know the file is binary or ASCII? I know both of them are stream of bytes but interpreted by different ways. My questions are: 1. How can I know this without opening it? 2. how can I see all the information in a file, include all the control characters, like

bio_split() for multiple bi_io_vec

2007-12-19 Thread Seongsu Lee
Hi, I need a function to split a bio into mutiple smaller bio-s. The bio_split() in Linux kernel does not support for spliting bio with multiple bi_io_vec. How can I support for it? I just removed the BUG_ONs and changed the maximum of bi_max_vecs for second bio in bio_split(). But it does not

Re: how to know a binary or text file and show all the information in file

2007-12-19 Thread Grigoriy Shcherbyak
Hello! File utility should give you the information on what this file is. Just run file myfile.dat. If you mean that you need to transform binary in printable form, then look to base64 coding functionality from openssl package - it can do this. Many tools can open binary files, it depends on

Re: how to know a binary or text file and show all the information in file

2007-12-19 Thread Rene Herman
On 19-12-07 09:18, [EMAIL PROTECTED] wrote: Could someone tell me how to know the file is binary or ASCII? I know both of them are stream of bytes but interpreted by different ways. I'm afraid your question means you are still confused with respect to this. Both type of files are _nothing_

help regarding the strace output

2007-12-19 Thread Santosh Pradhan
Hi All, I am new to this group. I am not sure whether this is the right place to ask this kind of question. Here is my doubt. I wrote a simple C program. #includestdio.h #includeunistd.h int main() { printf(Hello, World\n); sleep(10); } if i compile this program using gcc

RE: how to know a binary or text file and show all the information in file

2007-12-19 Thread C_C_Kuo
Hi: I do some experiment like below: fgets(cTemString, 3, fIn); printf(before sscanf ftell=0x%lx\n,ftell(fIn)); sscanf(cTemString,%x,uValue); printf(cTemString = %s\n,cTemString); printf(uValue in decimal is %d and in hex is 0x%x\n,uValue,uValue); printf(after sscanf

Re: help in writing usb sniffer.

2007-12-19 Thread Erik Mouw
On Sat, Dec 15, 2007 at 11:39:42AM +0530, V.Ravikumar wrote: Please help me in writing a linux usb sniffer. See Documentation/usb/usbmon.txt . Erik -- They're all fools. Don't worry. Darwin may be slow, but he'll eventually get them. -- Matthew Lammers in alt.sysadmin.recovery

Re: Linux PXE info

2007-12-19 Thread Erik Mouw
On Mon, Dec 17, 2007 at 07:05:25PM +0530, Mukund JB. wrote: I am just curious about a concept I would like to know about PXE. If suppose my PXE succesfully goes through the DHCP and gathers the Image from the network through tftp (not a linux image but an authentication module) and executes

Assigning statically bttv irqs

2007-12-19 Thread Andrea Gasparini
Hi all, I want to assign bttv irqs in order to don't share irqs between bttv cards. So, can i try to assign statically, at least for some test, irqs in bttv code? Could I lead to some problem doing that? My idea is to assign statically as best as possibile irq for all bttv chip, inside

Re: Assigning statically bttv irqs

2007-12-19 Thread Erik Mouw
On Wed, Dec 19, 2007 at 06:11:10PM +0100, Andrea Gasparini wrote: I want to assign bttv irqs in order to don't share irqs between bttv cards. So, can i try to assign statically, at least for some test, irqs in bttv code? Could I lead to some problem doing that? Yes, the problem is that you

Re: Assigning statically bttv irqs

2007-12-19 Thread jimc
Erik Mouw wrote: On Wed, Dec 19, 2007 at 06:11:10PM +0100, Andrea Gasparini wrote: I want to assign bttv irqs in order to don't share irqs between bttv cards. So, can i try to assign statically, at least for some test, irqs in bttv code? Could I lead to some problem doing that? Yes,

Re: Assigning statically bttv irqs

2007-12-19 Thread Andrea Gasparini
Hi Erik On Wed, Dec 19, 2007 at 06:11:10PM +0100, Andrea Gasparini wrote: I want to assign bttv irqs in order to don't share irqs between bttv cards. So, can i try to assign statically, at least for some test, irqs in bttv code? Could I lead to some problem doing that? Yes, the problem

Re: Assigning statically bttv irqs

2007-12-19 Thread Andrea Gasparini
Hi jim IOW, try moving your card to a different slot. No way, because i have only three slots and three pci cards. So, I think it doen's help... :( thanks, bye! -- -gaspa- --- - http://launchpad.net/~gaspa - -- HomePage:

serial port problem - help needed to debug

2007-12-19 Thread A.Krishnan
Hello, I am using two computers. The serial i/o chip is 16550A based. It is an old hardware and could not find more details. The two serial ports (ttyS0) are connected by a null-modem cable. I am sending a simple string (This is the tester) from one end to another end. I am running 2.6.9

Re: Easily find the source file containing an entry point

2007-12-19 Thread Binyamin Dissen
On Wed, 19 Dec 2007 22:35:36 +0100 Rene Herman [EMAIL PROTECTED] wrote: :On 19-12-07 21:31, Binyamin Dissen wrote: : I am looking at the kernel and I see a call to foobar. : How can I easily determine which source file has the foobar code? :The easiest way is using an editor that supports

Re: help regarding the strace output

2007-12-19 Thread Rene Herman
On 19-12-07 11:45, Santosh Pradhan wrote: I am new to this group. I am not sure whether this is the right place to ask this kind of question. Here is my doubt. It's fine here, although it might be the case that you don't actually get an answer from here. At least I seem to not know the

Re: Easily find the source file containing an entry point

2007-12-19 Thread Rene Herman
On 19-12-07 22:44, Binyamin Dissen wrote: :The easiest way is using an editor that supports tags. After you run make :tags in the root of the source tree (and have the ctags program installed) :vim -t foobar will take you to the definition of the foobar function. I issued MAKE TAGS (which is

read hangs at the position of 48KB in a file

2007-12-19 Thread Seongsu Lee
Hi, I am a kernel newbie and playing in block layer in Linux kernel. I am working in implementation of a layer which remaps the LBA in the request into a specific position according to a policy I made. I checked all the operation in my layer with blktrace and I think it's ok. But it always

Re: serial port problem - help needed to debug

2007-12-19 Thread Greg Freemyer
On Dec 19, 2007 3:41 PM, A.Krishnan [EMAIL PROTECTED] wrote: Hello, I am using two computers. The serial i/o chip is 16550A based. It is an old hardware and could not find more details. The two serial ports (ttyS0) are connected by a null-modem cable. I am sending a simple string (This is

Re: Easily find the source file containing an entry point

2007-12-19 Thread Manish Katiyar
Hi, The other option is to browse the source code from web browser. you will get links there. Try lxr.linux.no Hope that helps On Dec 20, 2007 10:57 AM, Manish Katiyar [EMAIL PROTECTED] wrote: Hi, The other option is to browse the source code from web browser. you will get links there. Try