Re: How to use the cryptographic API (e.g. md5 checksum)?

2011-05-27 Thread Peter Teoh
this opensource application (in windows) does meet your requirements: http://www.codeproject.com/KB/cpp/VerifyIntegrity.aspx On Sat, May 28, 2011 at 10:22 AM, Peter Teoh wrote: > On Sat, May 28, 2011 at 6:03 AM, Arvid Brodin wrote: >> Peter Teoh wrote: >>> On Tue, May 24, 2011 at 6:43 AM, Arvid

Re: How to use the cryptographic API (e.g. md5 checksum)?

2011-05-27 Thread Peter Teoh
On Sat, May 28, 2011 at 6:03 AM, Arvid Brodin wrote: > Peter Teoh wrote: >> On Tue, May 24, 2011 at 6:43 AM, Arvid Brodin wrote: >>> Hi, >>> >>> I want to perform an md5 checksum on a process' text segment (I create a >>> file >>> /proc//text_checksum that, when read, should give the md5sum). >>

Re: How to use the cryptographic API (e.g. md5 checksum)?

2011-05-27 Thread Arvid Brodin
Peter Teoh wrote: > On Tue, May 24, 2011 at 6:43 AM, Arvid Brodin wrote: >> Hi, >> >> I want to perform an md5 checksum on a process' text segment (I create a file >> /proc//text_checksum that, when read, should give the md5sum). >> >> The crypto api documentation (Documentation/crypto/api-intro.t

Re: Build scatterlist covering a process' text segment?

2011-05-27 Thread Arvid Brodin
Mulyadi Santosa wrote: > On 26/05/2011, Arvid Brodin wrote: >> Am I correct in that the addresses in (struct task_struct).mm->start_code >> and >> ->end_code belong to the address space of the process whose task_struct I'm >> looking >> at? > > > I believe yes > Ok. And looking at e.g. sg_

Re: Can we map a device address to two different memory locations?

2011-05-27 Thread Mulyadi Santosa
On Sat, May 28, 2011 at 00:48, anish singh wrote: > > > On Fri, May 27, 2011 at 10:54 PM, Mulyadi Santosa > wrote: >> >> Hi... >> >> On Fri, May 27, 2011 at 17:49, sandeep kumar >> wrote: >> > Now the question is can we memory map a one device resource(say some >> > iomemory) to two different me

Re: Can we map a device address to two different memory locations?

2011-05-27 Thread anish singh
On Fri, May 27, 2011 at 10:54 PM, Mulyadi Santosa wrote: > Hi... > > On Fri, May 27, 2011 at 17:49, sandeep kumar > wrote: > > Now the question is can we memory map a one device resource(say some > > iomemory) to two different memory locations? > > the other way of seeing at this question is, >

Re: Can we map a device address to two different memory locations?

2011-05-27 Thread Mulyadi Santosa
Hi... On Fri, May 27, 2011 at 17:49, sandeep kumar wrote: > Now the question is can we memory map a one device resource(say some > iomemory) to two different memory locations? > the other way of seeing at this question is, > Will ioremap() gives different 'virtual addresses' when called multiple

Re: How a program could generate the memory addresses for its variables, when it is about to run?

2011-05-27 Thread Mulyadi Santosa
Hi... On Fri, May 27, 2011 at 13:44, sandeep kumar wrote: > > I want to start with the following question, > How a program could generate the memory addresses for its variables, when it > is about to run? first, linker will determine in which section and which offset (from the start of the progr

Re: Questions about preemption and concurrency

2011-05-27 Thread Michael Blizek
Hi! On 17:14 Fri 27 May , Naman shekhar Mishra wrote: > In Operating System Concepts 6th ed, chapter 20: > "Kernel code can thus assume that it will never be preempted by another > process and that no special care must be > taken to protect critical sections. This is very simplified and hard

Re: Can we map a device address to two different memory locations?

2011-05-27 Thread Daniel Baluta
On Fri, May 27, 2011 at 1:49 PM, sandeep kumar wrote: > Hi all, > Memory mapping is done so that CPU can access the devices, which it cant > unless. > > Now the question is can we memory map a one device resource(say some > iomemory) to two different memory locations? > the other way of seeing at

Re: Changes in block layer for IOScheduler Insertion selection

2011-05-27 Thread Eduardo Silva
On Fri, May 27, 2011 at 8:29 AM, mani wrote: > > Dear All, > > I am working on linux kernel 2.6.32.9 tegra NVIDIA board. > > I am getting ~8MBps speed of the Nand disk if i use hdparm > hdparm -t /dev/mtdblock3 > > i made changes in block layer of kernel as below:- > > block/blk-core.c > static in

Re: Questions about preemption and concurrency

2011-05-27 Thread Jonathan Neuschäfer
On Fri, May 27, 2011 at 05:14:51PM +0530, Naman shekhar Mishra wrote: > Because the modules run as part of the kernel and no two processes > can run in the kernel at the same time? Or my question is wrong > since they CAN run in the kernel at the same time (like when one > process waits for I/O com

Re: Questions about preemption and concurrency

2011-05-27 Thread Daniel Baluta
On Fri, May 27, 2011 at 2:44 PM, Naman shekhar Mishra wrote: > In Operating System Concepts 6th ed, chapter 20: > "Kernel code can thus assume that it will never be preempted by another > process and that no special care must be > taken to protect critical sections. The only requirement is that cr

Changes in block layer for IOScheduler Insertion selection

2011-05-27 Thread mani
Dear All, I am working on linux kernel 2.6.32.9 tegra NVIDIA board. I am getting ~8MBps speed of the Nand disk if i use hdparm hdparm -t /dev/mtdblock3 i made changes in block layer of kernel as below:- block/blk-core.c static inline void add_request(struct request_queue *q, struct request *req

Questions about preemption and concurrency

2011-05-27 Thread Naman shekhar Mishra
In Operating System Concepts 6th ed, chapter 20: "Kernel code can thus assume that it will never be preempted by another process and that no special care must be taken to protect critical sections. The only requirement is that critical sections do not contain references to user memory or waits fo

Can we map a device address to two different memory locations?

2011-05-27 Thread sandeep kumar
Hi all, Memory mapping is done so that CPU can access the devices, which it cant unless. Now the question is can we memory map a one device resource(say some iomemory) to two different memory locations? the other way of seeing at this question is, Will ioremap() gives different 'virtual addresses'

Re: How to limit the total size used by core files or automatically delete old corefiles.

2011-05-27 Thread SADA SIVA REDDY S
Thanks Andrej and Manish. I will try to see if I can use logrotat or atleast buy the logic from it. Thanks, SADA On Thu, May 26, 2011 at 10:55 PM, Manish Katiyar wrote: > On Thu, May 26, 2011 at 5:31 AM, SADA SIVA REDDY S > wrote: > > Hi All, > >I have a situation like below. I am using R

Re: How a program could generate the memory addresses for its variables, when it is about to run?

2011-05-27 Thread Rahul Ramasubramanian
hi this may help http://www.akae.cn/study/ebook/computerscience/Linkers%20and%20Loaders.pdf On Fri, May 27, 2011 at 2:56 AM, Rajat Sharma wrote: > Hi Sandeep, > > probably you want to look at how your program is loaded in memory. For > example an ELF binary is understood by ELF format handler in