How can I get the sector count in kernel?

From: 韩磊
Date: Sun Nov 10 2013 - 07:27:28 EST


I need the count of sector,but I don't know how to get it.
Could you give me some favour?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/