From: Pedro Miguel Semeano <skinbits@ccjfaro.org>
To: linux-kernel@vger.kernel.org
Subject: Newbie question
Date: Thu, 24 May 2001 18:29:58 +0100 [thread overview]
Message-ID: <01052418295800.00624@Tuphir> (raw)
Hello all,
I'm doing a project in linux, and I'm changing the driver of sym53c8xx (a
SCSI board) to support Target mode.
To receive data, we need 2 interrupts. One is for initializing all of the
structures needed, and the second to send the data to the SCSI layer. What
happens is that bettwen that two interrupts i can't start sending data, but
in some cases that happen, and is beyond my control. To start sending data I
set a bit in a certain register of the chip.
What i would like to know is how can i to a kind of lock so that I set a
variable in the first interrupt, and unset it in the second. If the SCSI
layer trys to send data, I whant to stop before I set the bit of the chip.
But I don't know how...
Can anybody tel me how to do it?
Pedro Semeano
reply other threads:[~2001-05-24 17:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=01052418295800.00624@Tuphir \
--to=skinbits@ccjfaro.org \
--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