Programming :: Write A Value From A Specific Memory Location In C?

Jul 13, 2010

How to write a value to a specific memory location in C language and how to access the same value ?
I am trying the same on fedora linux and i am trying to write the value to the 32-bit address.

View 2 Replies


ADVERTISEMENT

Red Hat / Fedora :: Read Or Write At Specified Memory Location On SD Card

Dec 10, 2010

I am new to linux at driver level. I want to read/write at specified memory location in microSD card in linux. I do not want to used SD card with any file system. How to do that. My linux distribution is Fedora13.

View 3 Replies View Related

Programming :: Write A Script That Can Show Me Total Memory Vs Used Memory?

Apr 13, 2010

How do I write a script for my Linux that can show me total memory vs used memory and have it email me results if it's over 70 percent?

View 2 Replies View Related

Programming :: Byte At Memory Location 45 With Immediate Value 03

Jul 10, 2011

As 2.17
I want to code this:
and byte[45],03

In words, AND the byte at memory location 45 with immediate value 03. As reports "Ambiguous operand size for and". How could I code the instruction such that as understands my intention?

john: .byte 45
and byte[john],03
gives the same error.

View 8 Replies View Related

Programming :: How To Write To A File With Specific Indentation Through Php

Dec 12, 2008

I am a beginner with php ,trying to work my way through.
I have a file to be written with particular indentation and by appending some special characters...
this is the o/p file i wanted. could anyone please guide me as to how i can write it? code...

View 1 Replies View Related

Programming :: Write() To Disk Causes Memory Leak?

Oct 26, 2010

I have encountered this problem of memory usage is increasing as the during the my program is being run until 1Mb is left then it stays at that.A part of the program is this:

Code:
#define WRITE_BUF_SIZE (1024*1024)
void post_data(const void *data, unsigned long size)

[code]....

View 3 Replies View Related

Programming :: Write Script To Look For The Presence Of Memory Allocation Calls Without Corresponding?

May 14, 2011

I need to write script to look for the presence of memory allocation calls without corresponding calls to free the memory

View 5 Replies View Related

Ubuntu :: Nautilus Location Bar: How To Write Manually Location

Oct 30, 2010

I have been testing ubuntu 10.10 maverick, it has some nice features. Anyway I am missing the possibility of writing manually the folder you want to go on nautilus using the Location bar. It was used to have some kind of icon which you can click and it switched between graphich breadcrumbs or the location of the folder and you could changed it manually, you know what I mean?

View 2 Replies View Related

Programming :: Write A Script To Calculate The Total Amount Of Installed Memory?

Apr 4, 2011

I am trying to write a script to calculate the total amount of installed memory to use during an anaconda kickscript, so the swap file is created at 2 x the installed memory. I so far have the amount of installed RAM DIMMS but need a way to total them up and produce a varible I can use in the pre section of the install.

Code:

dmidecode -t 17 | grep Size | awk ' { print $2 }'
Output:
2048
2048

Note: on some servers there could be from 1 DIMM up to 16 DIMMS installed so the script needs to be able to handle this. I also can not use bc as it does not exist during the install stage. I am guessing I need a while loop to do this and use expr but do not know where to start for this logic.

View 3 Replies View Related

Ubuntu :: Specific Location For Installed Programs?

Jan 9, 2011

Yesterday, I downloaded qt and gcc by using "synaptic package manager" tool.Where does those programs intstalled?Well, in windows the programs are installed in c:Program Files folder. Similarly, is there a specific folder that the newly installed programs are placed?

View 4 Replies View Related

General :: Repacing A String At A Specific Location With Another In Vi (gVim)?

Mar 18, 2010

If i have a comma separated string like this one

Code:
aa,bb,cc,dd,ee
11,22,dd,3f,22

[code]....

View 6 Replies View Related

Security :: Change The Sys_call_address To Another Location In Memory?

Jan 4, 2010

Quote:

alexander@osiris:~$ uname -a
Linux osiris 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux

I tried to change the sys_call_address to another location in memory. The result was an OOPS!

sys_call_address is of course not exported, so I found it using:

Quote:

grep sys_call_table /boot/System.map-2.6.31-14-generic
c0577150 R sys_call_table

My kernel prog looks like:

Code:
#include <linux/string.h>
#include <linux/smp_lock.h>
#include <linux/init.h>
#include <linux/module.h>

[Code].....

View 5 Replies View Related

Software :: Writing Data Into A Memory Location?

Feb 1, 2010

I am using ARM9(S3C2440) board in which linux kernel 2.6.30.4 is ported and i need to write some 8-bit data(say 0xAA) into the memory location 0x08000000 and i need to trace the data written into the location is correct or not how to do this in linux.

View 3 Replies View Related

Programming :: Search A Bunch Of Files In A Specific Folder For A Specific Number?

Jul 24, 2010

I need to search a bunch of files in a specific folder for a specific number and add all the numbers together to a total sum. I use Rsync everyday, everytime I run rsync i get a logfile (rsync output) witch contains the textstring "Total bytes sent: xxxxxx".

The "xxxxx" can vary in lenght. I need to extract the "xxxxxx" from each file and add the numbers together to a total size over a week or a month. Is this possible? And I wish to only use bash. One way of doing stuff at a time my friends .

View 5 Replies View Related

Ubuntu :: VBOX Setup Location & Memory Settings?

Jan 5, 2010

I have a few questions about VBOX.

My system now is a dual boot computer with Ubuntu and Winxp each on there own HD. The system has 4gb memory with a 512mb Nvidia video card.

1. If I understand it correctly, VBOX installs it's own copy of Windows to a directory. I can't piont it to the Winxp that I already have installed on the other HD?

2. VBOX has a two sliders for Memory, one for System and the other for Video. Do any of you have a system such as mine and would you have any suggestions for the two sliders settings?

View 3 Replies View Related

Programming :: Replace Specific Character After Specific Line By Awk?

Jul 19, 2010

I want to replace specific character in a file after every specific line. example as follows.

O 000000000000000000
A 111111111111111111
C 222222222222222222

[code]...

View 2 Replies View Related

Programming :: Memory Leaks - Glibc Detected - ./SuffixTree: Malloc() - Memory Corruption - 0x00

Mar 21, 2011

I am new to C and linux. My code below does arbitary writes but I cant figure out where or how it does it.

I am calling the insertNode() function with seq = 'MISSISSPPI$' and alphabets = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ$'

Code:

Weird behaviour I should mention is that when I check for NULL pointer in node->child[index], the unassigned values are not null anymore, they point to arbitary memory.

View 12 Replies View Related

Ubuntu :: Install VMWare Server On 10.10 - Write Location Of C Headers ?

Dec 2, 2010

I'm trying to install VMWare server on Ubuntu 10.10 and I can't pass the step where I'm asked to write location of C headers.

I've installed kernel-devel, linux headers and build-essential

I've downloaded kernel-devel via google, and linux headers by writing this command:

Code:

I typed right location and the installation won't continue, and asking me again and again to write this location.

In my case, this location is: /usr/src/linux-headers-2.6.35-23.generic/include .

View 1 Replies View Related

General :: Write Script To Commit Files To SVN From Defined Location

Feb 1, 2010

I need help to write a script to commit files to SVN from a defined location to a SVN folder (ideally with new folder).

View 1 Replies View Related

Programming :: SHM Memory Counted As Cache Memory With Kernel 2.6.18?

Aug 25, 2010

Is that possible that SHM shared memory is counted as cache memory on Linux with kernel 2.6.18?If find it really odd since this memory is not file backed, but I have a piece of code that loads data using shm_open+mmap, and it generates an amount of cache memory in /proc/meminfo that corresponds exactly to the amount of shared memory (I load that data from a file but I am using posix_fadvise(fd,0,0,POSIX_FADV_DONTNEED) to ensure this file is not cached and I made sure that it is working as expected). As far as I know SHM memory was not tagged as cache memory with kernel 2.6.9.If it is the case it is really unfortunate since normally cache memory can be considered to be part of the "available" memory since it can be flushed promptly but this is clearly not the case with SHM memory... Is there an easy way to get the total amount of used SHM memory on a system?

View 4 Replies View Related

General :: Limit The Memory Usage Of A Specific Process?

Apr 24, 2010

I've written a program for a class that my professor will be testing in various low memory environments to see how it behaves when the program runs out of memory. Is there a way I can simulate the execution in a low memory environment without creating a virtual machine?

View 1 Replies View Related

Debian Installation :: Cannot Write Grub To Boot Location - Fatal Error

Jun 10, 2011

I have been following this tutorial [URL]. When I get to the end of the installation and try to install GRUB to the /boot partition I have set up it throws a fatal error at me. No explanation other than it can't write to the specified location. I double checked all the partition settings which were the same as the tutorial then skipped the GRUB installation and finished. The only thing I can think of that might be wrong is that the 250MB partition size specified for /boot in the tutorial is too small.

View 2 Replies View Related

Debian Hardware :: Cannot Access External Hdd, Memory Stick, Mp3 Player - Unable To Mount Location

Jul 22, 2011

usb devices, such as external hdd, memory stick and mp3 player, when I connect them to USB, they show up in Nautilus, but when I click on them, Nautilus is unable to mount them and returns the following error: Unable to mount location Error mounting: mount exited with exit code 1: helper failed with:mount: wrong fs type, bad option, bad superblock on /dev/sdc1, missing codepage or helper program, or other error in some cases useful info is found in syslog - try dmesg | tail or so

View 3 Replies View Related

General :: Write File To A Specific Sector?

Jun 28, 2010

I need to copy a file into a Flash memory which is connected to my computer via USB. The file must start at a specific sector.
Can anyone guide me how to do this? (it can be through a C program, a line command, or any other way)

View 8 Replies View Related

General :: Write A Bash Script To Restore Deleted Files To Original Location?

Dec 5, 2010

I have managed to write a bash script that moves files to the recylce bin instead of being deleted. Then (with a bit of assistance) wrote another bash script that deletes the files from the recycle bin. Now I need to write one that will restore the files preferably to their original location? I am very new to linux and stuggling with where to even begin...any ideas? There seems to be some advice about creating a cloning tree, but I've never heard of them?

View 8 Replies View Related

General :: Allow Specific User Permission To Read / Write Folder?

Feb 4, 2011

allow specific user permission to read/write my folder

I have a folder called /TAR/Sketch

I added a new user, named Snoopy, I want to grant this user the ability to add files & directories to this folder which is under the group Sketches and the owner is me.

How can I accomplish this ?

View 1 Replies View Related

Security :: Write A Specific Rule To Check For Spoofed Packets?

Apr 21, 2010

Just wanted input for this script i have cobbeled together. Its not done yet. I am trying to think of ways to close up my outgoing while maintaining full functionality of my laptop ( irc, web stuff, a torrent or two, etc.) . Anyways, I have done some myself; as well as, pulling bits and pieces from other stuff out on the web. I am starting to wonder why i have to write a specific rule to check for spoofed packets if my default input is set top drop. wouldnt it be caught?

Code:
#!/bin/bash
### Laptop + Desktop: No Forwarding firewall ip4 / ip6
### Distro > Debian / Ubuntu.
### oliverteasley@gmail.com

[Code]....

View 12 Replies View Related

General :: Write *.iso Image Files Onto USB Memory Stick?

Sep 6, 2009

Can you please do me favor and let me know how can I write the *.iso image files onto USB memory sticks as if we burn them into CD and thus making bootable CD to boot from ? Is there any command under Linux for this purpose ?

View 4 Replies View Related

General :: Write A Script To Move Specific Files In Various Folders To One Folder?

Nov 16, 2010

Terribly new to Linux and find it mindboggling. I work on brain imaging and unfortunately all of the analysis runs on Linux, and I do not understand computers well coming as I do from a medical background. So my question - There are various folders of patient MRI scans (folders called P1, P2, P3 etc) and within them are enclosed certain files that I am interested in (always called the same name in all folders, say image001). I would like a script that enables me to copy and move this image001 in all these individual folders to another folder altogether.

View 13 Replies View Related

Server :: Samba Share Read Only For Guests / Write For Some Specific Users

Jun 19, 2011

I've been reading for a while about samba but I haven't found a solution to my problem yet.I'd like to know if, the configuration I have in mind, is possible at all ("security = user" is what I'm using now).I want a directory to be:
1) read only for guests and some UNIX users;
2) write for some other UNIX users.

The advantage of this configuration would be that every single user in my LAN (with or without a UNIX account) would be able to read the content of the shared directory Music and I (UNIX user andrea) could manage the folder directly trough samba preserving the correct owner/group and permissions on the new files/folder created.

Notes about my configuration above:
1) as it is now every user gets authenticated by samba as nobody so even I (andrea) cannot write in it;
2) commenting out the line "guest ok = yes" I can authenticate as "andrea" and write in it but guest access is not possible any longer.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved