• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/lib/libnetmap/

Lines Matching defs:nmport_d

44 struct nmport_d;
159 /* struct nmport_d - describes a netmap port */
160 struct nmport_d {
173 /* the nmctx used when this nmport_d was created */
198 * If successful, the function returns a new nmport_d describing a netmap
205 * When done using it, the nmport_d descriptor must be closed using
211 struct nmport_d * nmport_open(const char *portspec);
219 void nmport_close(struct nmport_d *d);
231 int nmport_inject(struct nmport_d *d, const void *buf, size_t size);
249 /* nmport_new - create a new nmport_d
251 * Creates a new nmport_d using the malloc() method of the current default
254 struct nmport_d *nmport_new(void);
256 /* nmport_parse - fills the nmport_d netmap-register request
268 int nmport_parse(struct nmport_d *d, const char *portspec);
281 int nmport_register(struct nmport_d *);
295 int nmport_mmap(struct nmport_d *);
300 void nmport_delete(struct nmport_d *);
301 void nmport_undo_parse(struct nmport_d *);
302 void nmport_undo_register(struct nmport_d *);
303 void nmport_undo_mmap(struct nmport_d *);
308 * This functions creates a new nmport_d and initializes it according to
315 struct nmport_d *nmport_prepare(const char *portspec);
328 int nmport_open_desc(struct nmport_d *d);
333 void nmport_undo_prepare(struct nmport_d *);
334 void nmport_undo_open_desc(struct nmport_d *);
336 /* nmport_clone - copy an nmport_d
337 * @d the nmport_d we want to copy
339 * Copying an nmport_d by hand should be avoided, since adjustments are needed
341 * creates a copy of @d in a safe way. The returned nmport_d contains
343 * @d, except for the option list, which is ignored. The returned nmport_d is
345 * new nmport_d uses the same nmctx as @d.
353 struct nmport_d *nmport_clone(struct nmport_d *);
374 int nmport_extmem(struct nmport_d *d, void *base, size_t size);
387 int nmport_extmem_from_file(struct nmport_d *d, const char *fname);
398 struct nmreq_pools_info* nmport_extmem_getinfo(struct nmport_d *d);
612 int refcount; /* how many nmport_d's point here */