From: Doug McNaught <doug@mcnaught.org>
To: "Dirk Bull" <dirkbull102@hotmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: shmat problem
Date: 06 Jan 2003 09:17:52 -0500 [thread overview]
Message-ID: <m37kdiicq7.fsf@varsoon.wireboard.com> (raw)
In-Reply-To: "Dirk Bull"'s message of "Mon, 06 Jan 2003 09:05:37 +0000"
"Dirk Bull" <dirkbull102@hotmail.com> writes:
> I have a problem with the shmat() function. It works correctly when
> one doesn't specify an address where the segment should be attached,
> but fails when one does. To specify an address it must be alligned
> and I did by using __attribute__ (aligned()). Still the function
> fails. What is the most effective way for a solution
> to this problem.
__attribute__(aligned()) has nothing to do with it--the address needs
to be page-aligned (ie on a multiple of 4K for ix86), unless SHM_RND
is set in the call. You also need to make sure nothing else is mapped
at the address you're trying to use...
-Doug
next prev parent reply other threads:[~2003-01-06 14:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-06 9:05 Dirk Bull
2003-01-06 14:17 ` Doug McNaught [this message]
2003-01-06 14:53 Dirk Bull
2003-01-06 15:32 ` Doug McNaught
2003-01-06 15:50 ` Richard B. Johnson
2003-01-06 16:22 Alex Riesen
2003-01-06 16:36 ` Doug McNaught
2003-01-06 16:43 ` Alex Riesen
2003-01-06 16:50 ` Doug McNaught
2003-01-06 17:01 ` Alex Riesen
2003-01-07 8:14 Dirk Bull
2003-01-07 18:41 ` Alex Riesen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m37kdiicq7.fsf@varsoon.wireboard.com \
--to=doug@mcnaught.org \
--cc=dirkbull102@hotmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome