question regarding blk_rq_pos() calls in block.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In the driver block.c there is this line:

	do {
		struct mmc_command cmd;
		u32 readcmd, writecmd, status = 0;

		memset(&brq, 0, sizeof(struct mmc_blk_request));
		brq.mrq.cmd = &brq.cmd;
		brq.mrq.data = &brq.data;

		// THIS LINE
		brq.cmd.arg = blk_rq_pos(req);

I saw the sector number is a 64 bit number, so can the sector be considered a 'unique number', kind of like a unique address?

I don't see block.c actually using an address to set up a queue request read/write; rather, just sector, block size, command, and # of sectors. That is why I was wondering.

Thanks for the help and insight.

--
J (James/Jay) Freyensee
Storage Technology Group
Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux