usb_moded 0.86.0+mer64
usb_moded-modules.c File Reference
#include "usb_moded-modules.h"
#include "usb_moded-log.h"
#include <libkmod.h>
#include <glib.h>

Go to the source code of this file.

Functions

bool modules_init (void)
int modules_load_module (const char *module)
int modules_unload_module (const char *module)

Detailed Description

Copyright (c) 2010 Nokia Corporation. All rights reserved. Copyright (c) 2012 - 2021 Jolla Ltd. Copyright (c) 2020 Open Mobile Platform LLC.

Author
Philippe De Swert phili.nosp@m.ppe..nosp@m.de-sw.nosp@m.ert@.nosp@m.nokia.nosp@m..com
Philippe De Swert phdes.nosp@m.wer@.nosp@m.lumi..nosp@m.maa
Philippe De Swert phili.nosp@m.pped.nosp@m.eswer.nosp@m.t@gm.nosp@m.ail.c.nosp@m.om
Philippe De Swert phili.nosp@m.ppe..nosp@m.deswe.nosp@m.rt@j.nosp@m.ollam.nosp@m.obil.nosp@m.e.com
Thomas Perl m@thp.nosp@m..io
Slava Monich slava.nosp@m..mon.nosp@m.ich@j.nosp@m.olla.nosp@m..com
Simo Piiroinen simo..nosp@m.piir.nosp@m.oinen.nosp@m.@jol.nosp@m.lamob.nosp@m.ile..nosp@m.com

This program is free software; you can redistribute it and/or modify it under the terms of the Lesser GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the Lesser GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file usb_moded-modules.c.

Function Documentation

◆ modules_init()

bool modules_init ( void )

kmod module init

Returns
true if modules backend is ready for use, false otherwise

Definition at line 144 of file usb_moded-modules.c.

◆ modules_load_module()

int modules_load_module ( const char * module)

load module

Parameters
moduleName of the module to load
Returns
0 on success, non-zero on failure

Definition at line 181 of file usb_moded-modules.c.

◆ modules_unload_module()

int modules_unload_module ( const char * module)

unload module

Parameters
moduleName of the module to unload
Returns
0 on success, non-zero on failure

Definition at line 253 of file usb_moded-modules.c.