Skip to contentSkip to conversation

Which tag constants to use?

DISCUSSION Matthew Wilcox 1 participant 1 message Sep 19, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

Now that I've decided to ditch all the BSD compatibility code from sym2, I'm looking at converting the constant names to the standard Linux ones. Here's an interesting part of that -- we have two different Linux names for tag messages:

<scsi/scsi_tcq.h>:
#define MSG_SIMPLE_TAG 0x20
#define MSG_HEAD_TAG 0x21
#define MSG_ORDERED_TAG 0x22

<scsi/scsi.h>:

#define SIMPLE_QUEUE_TAG    0x20
#define HEAD_OF_QUEUE_TAG   0x21
#define ORDERED_QUEUE_TAG   0x22

I presume the tcq ones are newer and hence should be used in preference?

Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain