Support for serial number parameter on open().

Signed-off-by: Chris Reed <flit@me.com>