07-30-2009
Donīt worry by the 5000 (key_t), in the original source is not hardcode, this is only the example of the problem.
I have tested your solution: shmget(5000, sizeof(int), 0777 & IPC_CREAT);
and give me error in Step 1: ERROR crear memoria [2] [No such file or directory].
Remember that the first connection (step 2) works correctly, the problem is the second one.
Last edited by dairby; 07-30-2009 at 12:07 PM..
10 More Discussions You Might Find Interesting
1. HP-UX
I have installed an application that runs correctly for root but not other users. The application generates an error that indicates users don't have permission to attach to shared memory. A daemon process creates the shared memory segment. I've checked every permission I can think of but nothing... (2 Replies)
Discussion started by: km4hr
2 Replies
2. Programming
The first shmat in my program cannot fetch the start address of the shared memory.
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
int main(int argc,char *argv) {
int pid;
key_t mykey;
int shmid;
long *shm;
long *shm2;
... (3 Replies)
Discussion started by: yong
3 Replies
3. Linux
Hi,
I'm developing a data processing pipeline with multiple stages, with data being moved between the stages using shared memory segments. The size of the data is typically of the order of hundreds of megabytes, and there are typically a few tens of main shared memory segments each of size... (2 Replies)
Discussion started by: theicarusagenda
2 Replies
4. AIX
Hi,
I got this error from AIX 4.3.3/db2 7:
* %SHAREMEM-F-SHMAT Error getting PUTPARM shared memory address , shmid=23029 *
* 3630, errno=13
Anybody who know how to fix this?
Thanks in advance,
itik (1 Reply)
Discussion started by: itik
1 Replies
5. Programming
I have a process that needs two active connections to the same zone of shared memory simultaneously.
The firs conection works ok, but when i do the second call to shmat it give me error 22 (EINVAL). Only works ok the second call to shmat if i disconnect the first connection (shmdt)
Steps:... (3 Replies)
Discussion started by: dairby
3 Replies
6. Programming
request_irq always returns EINVAL
What am I doing wrong here ?
int mydrvr_open(struct inode *inode, struct file *filp)
{
int ret;
printk("<1> \nModule Opened!");
//disable_irq(4);
//free_irq(4, NULL);
ret = request_irq(4, &imr_interrupt_handler,IRQF_SHARED,... (0 Replies)
Discussion started by: dragonpoint
0 Replies
7. Programming
Hi,
I'm using Ubuntu 10.04 on a 64bit machine.
In my shmat() call, I want to assign fixed memory address to shmaddr variable. I have no idea which address value to give. Some where in the net I read we can make use of sysproc info to know the user space addresses, but could not figure out how... (1 Reply)
Discussion started by: sajjar
1 Replies
8. SuSE
Hi,
My program was running for a whole night. after 12 hours i got an error message "Cannot allocate memory" during the shmat commmand. So can you please let me know what could be the reason? is there any solution?
thanks in advance.
Regards,
Mano (5 Replies)
Discussion started by: ManoharanMani
5 Replies
9. Shell Programming and Scripting
Hello,
I have another problem with my script. Please accept my apologies, but I am really nooby in sh scripts. I am writing it for first time.
My script:
returned=`tail -50 SapLogs.log | grep -i "Error"`
echo $returned
if ; then
echo "There is no errors in the logs"
fi
And after... (10 Replies)
Discussion started by: jedzio
10 Replies
10. Shell Programming and Scripting
Hi
Below script is throwing an error:
repos=root
filename=/home/admin/Desktop/authz
case $repos in
root)
root_folder="\"
do
sed "/$root_folder/a $username = $access" $filename
done
;;
esac
exit 0
Error:
./new1.sh: line 77: syntax error near unexpected token `do' (1 Reply)
Discussion started by: ankur328
1 Replies
LEARN ABOUT NETBSD
ioasic
IOASIC(4) BSD Kernel Interfaces Manual IOASIC(4)
NAME
ioasic -- baseboard IO control ASIC for DEC TURBOchannel systems
SYNOPSIS
ioasic0 at tc? slot ? offset ?
DESCRIPTION
The ioasic driver provides support for the DEC proprietary IOCTL ASIC found on all DEC TURBOchannel machines with MIPS (DECstation 5000
series, excluding the 5000/200) and Alpha (3000-series) processors. On these machines (including the 5000/200), all baseboard devices should
be configured as children of the ioasic device.
The ioasic provides hardware DMA channels and interrupt support for several baseboard devices, including one asc SCSI device with a scat-
ter/gather DMA channel, an mc146818-compatible mcclock, an Am7930 audio device bba, one or two scc two-port serial devices, and a AMD 7990
LANCE le Ethernet interface.
The ioasic is also used for the floppy-disc drive and audio/ISDN hardware on the Personal DECstation and audio-equipped TURBOchannel Alphas,
where the ioasic hardware provides a scatter-gather DMA channel between the 16-bit device and the 32-bit tc DMA address space.
Support for scatter-gather DMA eliminates the need for additional copying. A baseboard asc SCSI adaptor attached to an ioasic will give
slightly better performance than its tc counterpart.
SEE ALSO
asc(4), bba(4), intro(4), le(4), mcclock(4), scc(4), tc(4)
HISTORY
The ioasic driver first appeared in NetBSD 1.1, derived from DECstation boot-time configuration code in 4.4BSD.
BUGS
The DECstation 5000/200 does not actually have an IOASIC chip, but for consistency it must be configured as if it did.
BSD
September 12, 1996 BSD