@@ -1,20 +1,6 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * libkmod - interface to kernel built-in modules
- *
- * Copyright (C) 2019 Alexey Gladkov <gladkov.alexey@gmail.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright (C) 2019 Alexey Gladkov <gladkov.alexey@gmail.com>
*/
#include <sys/types.h>
@@ -1,21 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * libkmod - interface to kernel module operations
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- * Copyright (C) 2013 Intel Corporation. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <ctype.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * libkmod - interface to kernel module operations
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <assert.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * libkmod - interface to kernel module operations
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * libkmod - interface to kernel module operations
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <arpa/inet.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * libkmod - interface to kernel module operations
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#pragma once
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * libkmod - interface to kernel module operations
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <stdlib.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * libkmod - interface to kernel module operations
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <assert.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * libkmod - module signature display
- *
- * Copyright (C) 2013 Michal Marek, SUSE
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2013 Michal Marek, SUSE
+ * Copyright © 2015-2024 Intel Corporation
*/
#include <endian.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * libkmod - interface to kernel module operations
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <assert.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * libkmod - interface to kernel module operations
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#pragma once
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * libkmod - interface to kernel module operations
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <assert.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * libkmod - interface to kernel module operations
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,21 +1,9 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * kmod - interface to kernel module operations
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
+
#pragma once
#include <stddef.h>
@@ -1,21 +1,8 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * kmod - interface to kernel module operations
- *
- * Copyright (C) 2016 Intel Corporation. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2016-2024 Intel Corporation
*/
+
#include "scratchbuf.h"
#include <errno.h>
@@ -1,21 +1,6 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * libkmod - interface to kernel module operations
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- * Copyright (C) 2014 Intel Corporation. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2024 Intel Corporation
*/
#include <assert.h>
@@ -1,22 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * kmod - interface to kernel module operations
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- * Copyright (C) 2012 Lucas De Marchi <lucas.de.marchi@gmail.com>
- * Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <assert.h>
@@ -1,22 +1,8 @@
-# kmod completion -*- shell-script -*-
-#
-# This file is part of kmod.
+#!/usr/bin/env bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Copyright 2010 Ran Benita
-# Copyright (C) 2013 Intel Corporation. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as published by
-# the Free Software Foundation; either version 2.1 of the License, or
-# (at your option) any later version.
-#
-# 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 GNU Lesser General Public License
-# along with this program; if not, see <http://www.gnu.org/licenses/>.
+# Copyright © 2013-2024 Intel Corporation
__contains_word () {
local word=$1; shift
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <assert.h>
@@ -1,19 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- * Copyright (C) 2012-2013 Lucas De Marchi <lucas.de.marchi@gmail.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#ifndef HAVE_FINIT_MODULE
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
/* We unset _FILE_OFFSET_BITS here so we can override both stat and stat64 on
@@ -1,18 +1,6 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2014 Intel Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2014-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,18 +1,6 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2014 Intel Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2014-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,18 +1,6 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2015 Intel Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2015-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,18 +1,6 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2015 Intel Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2015-2024 Intel Corporation
*/
#include <stdio.h>
@@ -1,20 +1,10 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
+
#include <errno.h>
#include <inttypes.h>
#include <stddef.h>
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,18 +1,6 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2016 Intel Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2016-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,18 +1,6 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2014 Intel Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2014-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <dirent.h>
@@ -1,18 +1,6 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
* Copyright Red Hat
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include <errno.h>
@@ -1,19 +1,8 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- * Copyright (C) 2012 Pedro Pedruzzi
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2012 Pedro Pedruzzi
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <fcntl.h>
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <dirent.h>
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#pragma once
@@ -1,18 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <dlfcn.h>
@@ -1,22 +1,11 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * kmod-depmod - calculate modules.dep using libkmod.
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2008 Alan Jenkins <alan-jenkins@tuffmail.co.uk>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
+#include <arpa/inet.h>
#include <assert.h>
#include <ctype.h>
#include <dirent.h>
@@ -129,31 +118,7 @@ static inline void _show(const char *fmt, ...)
}
#define SHOW(...) _show(__VA_ARGS__)
-
-/* binary index write *************************************************/
-#include <arpa/inet.h>
-/* BEGIN: code from module-init-tools/index.c just modified to compile here.
- *
- * Original copyright:
- * index.c: module index file shared functions for modprobe and depmod
- * Copyright (C) 2008 Alan Jenkins <alan-jenkins@tuffmail.co.uk>.
- *
- * These programs are free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 GNU General Public License
- * along with these programs. If not, see <http://www.gnu.org/licenses/>.
- */
-
/* see documentation in libkmod/libkmod-index.c */
-
#define INDEX_MAGIC 0xB007F457
#define INDEX_VERSION_MAJOR 0x0002
#define INDEX_VERSION_MINOR 0x0001
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * kmod-insmod - insert modules into linux kernel using libkmod.
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * kmod - one tool to rule them all
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * kmod - one tool to rule them all
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#pragma once
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * kmod - log infrastructure
- *
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * kmod - log infrastructure
- *
- * Copyright (C) 2012-2013 ProFUSION embedded systems
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2012-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <stdarg.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * kmod-lsmod - list modules from linux kernel using libkmod.
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * kmod-modinfo - query kernel module information using libkmod.
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * kmod-modprobe - manage linux kernel modules using libkmod.
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <assert.h>
@@ -1,20 +1,7 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * kmod-rmmod - remove modules from linux kernel using libkmod.
- *
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
@@ -1,22 +1,9 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
- * kmod-static-nodes - manage modules.devname
- *
- * Copyright (C) 2004-2012 Kay Sievers <kay@vrfy.org>
- * Copyright (C) 2011-2013 ProFUSION embedded systems
- * Copyright (C) 2013 Tom Gundersen <teg@jklm.no>
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * Copyright © 2004-2012 Kay Sievers <kay@vrfy.org>
+ * Copyright © 2011-2013 ProFUSION embedded systems
+ * Copyright © 2013 Tom Gundersen <teg@jklm.no>
+ * Copyright © 2013-2024 Intel Corporation
*/
#include <errno.h>
Drop the lengthy license from each file and just use SPDX like most projects nowadays. Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com> --- libkmod/libkmod-builtin.c | 18 ++------------ libkmod/libkmod-config.c | 20 +++------------- libkmod/libkmod-elf.c | 19 +++------------ libkmod/libkmod-file.c | 19 +++------------ libkmod/libkmod-index.c | 19 +++------------ libkmod/libkmod-index.h | 19 +++------------ libkmod/libkmod-list.c | 19 +++------------ libkmod/libkmod-module.c | 19 +++------------ libkmod/libkmod-signature.c | 19 +++------------ libkmod/libkmod.c | 19 +++------------ libkmod/libkmod.h | 19 +++------------ shared/array.c | 19 +++------------ shared/hash.c | 19 +++------------ shared/macro.h | 20 ++++------------ shared/scratchbuf.c | 19 +++------------ shared/strbuf.c | 19 ++------------- shared/util.c | 21 +++------------- shell-completion/bash/kmod | 20 +++------------- testsuite/delete_module.c | 17 +++---------- testsuite/init_module.c | 18 +++----------- testsuite/path.c | 17 +++---------- testsuite/test-array.c | 16 ++----------- testsuite/test-blacklist.c | 17 +++---------- testsuite/test-dependencies.c | 17 +++---------- testsuite/test-depmod.c | 17 +++---------- testsuite/test-hash.c | 16 ++----------- testsuite/test-init.c | 17 +++---------- testsuite/test-initstate.c | 16 ++----------- testsuite/test-list.c | 16 ++----------- testsuite/test-loaded.c | 18 ++++---------- testsuite/test-modinfo.c | 17 +++---------- testsuite/test-modprobe.c | 17 +++---------- testsuite/test-new-module.c | 17 +++---------- testsuite/test-scratchbuf.c | 16 ++----------- testsuite/test-strbuf.c | 16 ++----------- testsuite/test-testsuite.c | 17 +++---------- testsuite/test-user.c | 14 +---------- testsuite/test-util.c | 19 ++++----------- testsuite/testsuite.c | 17 +++---------- testsuite/testsuite.h | 17 +++---------- testsuite/uname.c | 17 +++---------- tools/depmod.c | 45 ++++------------------------------- tools/insmod.c | 19 +++------------ tools/kmod.c | 19 +++------------ tools/kmod.h | 19 +++------------ tools/log.c | 19 +++------------ tools/log.h | 19 +++------------ tools/lsmod.c | 19 +++------------ tools/modinfo.c | 19 +++------------ tools/modprobe.c | 19 +++------------ tools/rmmod.c | 19 +++------------ tools/static-nodes.c | 23 ++++-------------- 52 files changed, 153 insertions(+), 818 deletions(-)