core.c (57b8628bb0ac4e47c806e45c5bbd89282e93869b) core.c (f45ebf3a6be9da051f078b30e7309b6788932189)
1/*
2 * Copyright 2008 by Karsten Keil <kkeil@novell.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 341 unchanged lines hidden (view full) ---

350 printk(KERN_DEBUG "%s: %s/%x\n", __func__, bp->name,
351 bp->Bprotocols);
352 write_lock_irqsave(&bp_lock, flags);
353 list_del(&bp->list);
354 write_unlock_irqrestore(&bp_lock, flags);
355}
356EXPORT_SYMBOL(mISDN_unregister_Bprotocol);
357
1/*
2 * Copyright 2008 by Karsten Keil <kkeil@novell.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 341 unchanged lines hidden (view full) ---

350 printk(KERN_DEBUG "%s: %s/%x\n", __func__, bp->name,
351 bp->Bprotocols);
352 write_lock_irqsave(&bp_lock, flags);
353 list_del(&bp->list);
354 write_unlock_irqrestore(&bp_lock, flags);
355}
356EXPORT_SYMBOL(mISDN_unregister_Bprotocol);
357
358static const char *msg_no_channel = "<no channel>";
359static const char *msg_no_stack = "<no stack>";
360static const char *msg_no_stackdev = "<no stack device>";
361
362const char *mISDNDevName4ch(struct mISDNchannel *ch)
363{
364 if (!ch)
365 return msg_no_channel;
366 if (!ch->st)
367 return msg_no_stack;
368 if (!ch->st->dev)
369 return msg_no_stackdev;
370 return dev_name(&ch->st->dev->dev);
371};
372EXPORT_SYMBOL(mISDNDevName4ch);
373
358static int
359mISDNInit(void)
360{
361 int err;
362
363 printk(KERN_INFO "Modular ISDN core version %d.%d.%d\n",
364 MISDN_MAJOR_VERSION, MISDN_MINOR_VERSION, MISDN_RELEASE);
365 mISDN_init_clock(&debug);

--- 43 unchanged lines hidden ---
374static int
375mISDNInit(void)
376{
377 int err;
378
379 printk(KERN_INFO "Modular ISDN core version %d.%d.%d\n",
380 MISDN_MAJOR_VERSION, MISDN_MINOR_VERSION, MISDN_RELEASE);
381 mISDN_init_clock(&debug);

--- 43 unchanged lines hidden ---