[PATCH] Add support for the read/write interface of SG v3