Date: Mon, 13 Jun 2016 23:24:41 GMT From: yuanxunzhang@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r305169 - soc2016/yuanxunzhang/head/usr.sbin/eaps Message-ID: <201606132324.u5DNOfZw019804@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuanxunzhang Date: Mon Jun 13 23:24:40 2016 New Revision: 305169 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=305169 Log: EAPS: load the eaps module, when user create eaps instance Modified: soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c Modified: soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c ============================================================================== --- soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c Mon Jun 13 23:20:55 2016 (r305168) +++ soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c Mon Jun 13 23:24:40 2016 (r305169) @@ -101,9 +101,10 @@ load_module(const char *module_name) { struct module_stat mstat; - + int fileid, modid; + const char *cp; + mstat.version = sizeof(struct module_stat); - for (fileid = kldnext(0); fileid > 0; fileid = kldnext(fileid)) { /* scan modules in file */ for (modid = kldfirstmod(fileid); modid > 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606132324.u5DNOfZw019804>