Exemplo n.º 1
0
static int init_netdump(void)
{
	int configured = 0;

	if (strlen(config))
		configured = option_setup(config);

	if (!configured) {
		printk(KERN_ERR "netdump: not configured, aborting\n");
		return -EINVAL;
	}

	if (netpoll_setup(&np))
		return -EINVAL;

	if (magic1 || magic2)
		netdump_magic = magic1 + (((u64)magic2)<<32);

	/*
	 *  Allocate a separate stack for netdump.
	 */
	platform_init_stack(&netdump_stack);

	platform_jiffy_cycles(&jiffy_cycles);

	printk(KERN_INFO "netdump: network crash dump enabled\n");
	return 0;
}
Exemplo n.º 2
0
static int u14_34f_detect(struct scsi_host_template *tpnt) {
    unsigned int j = 0, k;

    tpnt->proc_name = "u14-34f";

    if(strlen(boot_options)) option_setup(boot_options);

#if defined(MODULE)
    /* io_port could have been modified when loading as a module */
    if(io_port[0] != SKIP) {
        setup_done = TRUE;
        io_port[MAX_INT_PARAM] = 0;
    }
#endif

    for (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL;

    for (k = 0; io_port[k]; k++) {

        if (io_port[k] == SKIP) continue;

        if (j < MAX_BOARDS && port_detect(io_port[k], j, tpnt)) j++;
    }

    num_boards = j;
    return j;
}
Exemplo n.º 3
0
int init_kgdboe(void)
{
	/* Already done? */
	if (configured == 2)
		return 0;

	if (strlen(config))
		option_setup(config);

	if (!configured) {
		printk("kgdboe: configuration incorrect - kgdboe not "
		       "loaded.\n");
		printk("  Usage: kgdboe=[src-port]@[src-ip]/[dev],[tgt-port]"
		       "@<tgt-ip>/[tgt-macaddr]\n");
		return -EINVAL;
	}

	if (netpoll_setup(&np)) {
		printk("kgdboe: netpoll_setup failed kgdboe failed\n");
		return -EINVAL;
	}

	if (kgdb_register_io_module(&local_kgdb_io_ops))
		return -EINVAL;

	printk(KERN_INFO "kgdboe: debugging over ethernet enabled\n");

	configured = 2;

	return 0;
}
Exemplo n.º 4
0
static int ainit_module (void)
{
        int ret = 0;

        /* Learn from netconsole. */
        if (strlen(config)) 
        {
                ret = option_setup(config);
                if (!ret)
                        printk("MIRROR module loaded.\n");
        } else
                ret = -EINVAL;

        return ret;
}
Exemplo n.º 5
0
int
init_module (void)
{
        int ret = 0;

        /* Learn from netconsole. */
        if (strlen(config)) {
                ret = option_setup(config);
                if (ret)
                        return ret;
        }

        printk("MIRROR module loaded.\n");
        return ret;
}
Exemplo n.º 6
0
static int init_netconsole(void)
{
	if(strlen(config))
		option_setup(config);

	if(!configured) {
		printk("netconsole: not configured, aborting\n");
		return -EINVAL;
	}

	if(netpoll_setup(&np))
		return -EINVAL;

	register_console(&netconsole);
	printk(KERN_INFO "netconsole: network logging started\n");
	return 0;
}