svn commit: r210799 - projects/sv/sys/net

Attilio Rao attilio at FreeBSD.org
Tue Aug 3 14:30:13 UTC 2010


Author: attilio
Date: Tue Aug  3 14:30:13 2010
New Revision: 210799
URL: http://svn.freebsd.org/changeset/base/210799

Log:
  Introduce a new controlling structure to be used in drivers implementing
  netdump logic.
  
  A description will be available shortly.

Modified:
  projects/sv/sys/net/netdump.h

Modified: projects/sv/sys/net/netdump.h
==============================================================================
--- projects/sv/sys/net/netdump.h	Tue Aug  3 14:12:43 2010	(r210798)
+++ projects/sv/sys/net/netdump.h	Tue Aug  3 14:30:13 2010	(r210799)
@@ -33,6 +33,15 @@
 
 #ifdef _KERNEL
 
+struct mtx;
+
+struct netdump_methods {
+	void (*test_get_lock)(struct ifnet *);
+	int (*break_lock)(struct ifnet *, int *, uint8_t *, unsigned);
+	void (*release_lock)(struct ifnet *);
+	int (*poll_locked)(struct ifnet *, enum poll_cmd, int);
+};
+
 int	 netdump_break_lock(struct mtx *lock, const char *name,
 	    int *broke_lock, uint8_t *broken_state, unsigned index,
 	    unsigned broken_state_size);


More information about the svn-src-projects mailing list