X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdpif-provider.h;h=bc1894292135f567d45909c098af52252a8d3980;hb=4afba28d559511a5ee03e005b65be8323bf26ad3;hp=c51b1dfa0210a0783b18bf1297116fc539f752e0;hpb=11a574a737fa506c8e66c7bd42fa3186e70c286f;p=openvswitch diff --git a/lib/dpif-provider.h b/lib/dpif-provider.h index c51b1dfa..bc189429 100644 --- a/lib/dpif-provider.h +++ b/lib/dpif-provider.h @@ -122,11 +122,13 @@ struct dpif_class { /* Removes port numbered 'port_no' from 'dpif'. */ int (*port_del)(struct dpif *dpif, uint32_t port_no); - /* Queries 'dpif' for a port with the given 'port_no' or 'devname'. Stores - * information about the port into '*port' if successful. + /* Queries 'dpif' for a port with the given 'port_no' or 'devname'. + * If 'port' is not null, stores information about the port into + * '*port' if successful. * - * The caller takes ownership of data in 'port' and must free it with - * dpif_port_destroy() when it is no longer needed. */ + * If 'port' is not null, the caller takes ownership of data in + * 'port' and must free it with dpif_port_destroy() when it is no + * longer needed. */ int (*port_query_by_number)(const struct dpif *dpif, uint32_t port_no, struct dpif_port *port); int (*port_query_by_name)(const struct dpif *dpif, const char *devname,