2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2016 Joyent, Inc.
20 .Nd optional device open and close entry points
22 .In sys/mac_provider.h
36 A pointer to the driver's private data that was passed in via the
49 entry points are called when the file system node corresponding to the
51 Standard device drivers do not need to implement this function and should not
54 The GLDv3 guarantees that calls to the
58 entry points are serialized.
59 Only one such call will be issued to the device driver at any time.
61 Upon successful completion, the device driver should return
66 Otherwise, it should return a non-zero error number to indicate an error