code stringlengths 6 250k | repo_name stringlengths 5 70 | path stringlengths 3 177 | language stringclasses 1
value | license stringclasses 15
values | size int64 6 250k |
|---|---|---|---|---|---|
/*
* linux/arch/arm/mach-integrator/integrator_cp.c
*
* Copyright (C) 2003 Deep Blue Solutions Ltd
*
* 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.
*/... | gazoo74/linux | arch/arm/mach-integrator/integrator_cp.c | C | gpl-2.0 | 3,694 |
#include <linux/proc_fs.h>
#include <linux/nsproxy.h>
#include <linux/sched.h>
#include <linux/ptrace.h>
#include <linux/fs_struct.h>
#include <linux/mount.h>
#include <linux/path.h>
#include <linux/namei.h>
#include <linux/file.h>
#include <linux/utsname.h>
#include <net/net_namespace.h>
#include <linux/ipc_namespace.... | ziqiaozhou/cachebar | source/fs/proc/namespaces.c | C | gpl-2.0 | 6,667 |
/*
* linux/fs/hfsplus/catalog.c
*
* Copyright (C) 2001
* Brad Boyer (flar@allandria.com)
* (C) 2003 Ardis Technologies <roman@ardistech.com>
*
* Handling of catalog records
*/
#include "hfsplus_fs.h"
#include "hfsplus_raw.h"
int hfsplus_cat_case_cmp_key(const hfsplus_btree_key *k1,
const hfsplus_btr... | jiangweifeng04/linux_kernel_2_6_32 | linux-2.6.32.61/fs/hfsplus/catalog.c | C | gpl-2.0 | 10,847 |
/*
* Copyright 2002-2005, Instant802 Networks, Inc.
* Copyright 2005-2006, Devicescape Software, Inc.
* Copyright (c) 2006 Jiri Benc <jbenc@suse.cz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free... | chrisy/linux | net/mac80211/rate.c | C | gpl-2.0 | 19,177 |
/*
Unix SMB/CIFS implementation.
Winbind domain child functions
Copyright (C) Stefan Metzmacher 2007
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 3 of the Licens... | zarboz/XBMC-PVR-mac | tools/darwin/depends/samba/samba-3.6.6/source3/winbindd/winbindd_domain.c | C | gpl-2.0 | 2,297 |
// SPDX-License-Identifier: GPL-2.0
/*
* Plantower PMS7003 particulate matter sensor driver
*
* Copyright (c) Tomasz Duszynski <tduszyns@gmail.com>
*/
#include <asm/unaligned.h>
#include <linux/completion.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/iio/buffer.h>
#include <linux/iio/iio.h>... | GuillaumeSeren/linux | drivers/iio/chemical/pms7003.c | C | gpl-2.0 | 8,805 |
/*
* Copyright 2004-2009 Analog Devices Inc.
* 2007 David Rowe
* 2006 Intratrade Ltd.
* Ivan Danov <idanov@gmail.com>
* 2005 National ICT Australia (NICTA)
* Aidan Williams <aidan@nicta.com.au>
*
* Licensed under the GPL-2 or l... | talnoah/android_kernel_htc_dlx | virt/arch/blackfin/mach-bf533/boards/ip0x.c | C | gpl-2.0 | 7,373 |
/*
* drivers/staging/android/ion/compat_ion.c
*
* Copyright (C) 2013 Google, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is dist... | 7420dev/android_kernel_samsung_zeroflte | drivers/staging/android/ion/compat_ion.c | C | gpl-2.0 | 6,044 |
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* Copyright (C) 2015-2018 Netronome Systems, Inc. */
/*
* nfp_netvf_main.c
* Netronome virtual function network device driver: Main entry point
* Author: Jason McMullan <jason.mcmullan@netronome.com>
* Rolf Neugebauer <rolf.neugebauer@netronome.co... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-5.4/drivers/net/ethernet/netronome/nfp/nfp_netvf_main.c | C | gpl-2.0 | 8,301 |
/*
* linux/fs/ext4/indirect.c
*
* from
*
* linux/fs/ext4/inode.c
*
* Copyright (C) 1992, 1993, 1994, 1995
* Remy Card (card@masi.ibp.fr)
* Laboratoire MASI - Institut Blaise Pascal
* Universite Pierre et Marie Curie (Paris VI)
*
* from
*
* linux/fs/minix/inode.c
*
* Copyright (C) 1991, 1992 Linus... | up2wing/fox-kernel-comment | linux-3.10.89/fs/ext4/indirect.c | C | gpl-2.0 | 41,980 |
/*
* Copyright © 2010 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, pub... | talnoah/android_kernel_htc_dlx | virt/drivers/gpu/drm/gma500/mdfld_dsi_output.c | C | gpl-2.0 | 16,388 |
/*
* Performance events - AMD IBS
*
* Copyright (C) 2011 Advanced Micro Devices, Inc., Robert Richter
*
* For licencing details see kernel-base/COPYING
*/
#include <linux/perf_event.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <asm/apic.h>
static u32 ibs_caps;
#if defined(CONFIG_PERF_EVENTS)... | talnoah/android_kernel_htc_dlx | virt/arch/x86/kernel/cpu/perf_event_amd_ibs.c | C | gpl-2.0 | 6,171 |
/******************************************************************************
*
* Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved.
* Copyright(c) 2015 Intel Deutschland GmbH
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU Gene... | mikedlowis-prototypes/albase | source/kernel/drivers/net/wireless/intel/iwlwifi/dvm/rxon.c | C | bsd-2-clause | 45,827 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* AD7904/AD7914/AD7923/AD7924/AD7908/AD7918/AD7928 SPI ADC driver
*
* Copyright 2011 Analog Devices Inc (from AD7923 Driver)
* Copyright 2012 CS Systemes d'Information
*/
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/sysfs.h... | GuillaumeSeren/linux | drivers/iio/adc/ad7923.c | C | gpl-2.0 | 10,455 |
/**
* \file drm_memory.c
* Memory management wrappers for DRM
*
* \author Rickard E. (Rik) Faith <faith@valinux.com>
* \author Gareth Hughes <gareth@valinux.com>
*/
/*
* Created: Thu Feb 4 14:00:34 1999 by faith@valinux.com
*
* Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
* Copyright 2000 VA L... | talnoah/android_kernel_htc_dlx | virt/drivers/gpu/drm/drm_memory.c | C | gpl-2.0 | 4,402 |
/*
* Copyright (c) 2012, Freescale Semiconductor, Inc.
* All rights reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE... | grissiom/rt-thread | bsp/imx6sx/iMX6_Platform_SDK/board/mx6sdl/smart_device/rev_c_iomux/gpio2_iomux_config.c | C | gpl-2.0 | 35,317 |
#include <linux/device.h>
#include <linux/err.h>
#include <linux/export.h>
struct class *sec_class;
EXPORT_SYMBOL(sec_class);
static int __init midas_class_create(void)
{
sec_class = class_create(THIS_MODULE, "sec");
if (IS_ERR(sec_class)) {
pr_err("Failed to create class(sec)!\n");
return PTR_ERR(sec_class);
... | nbars/Custom-Kernel-SM-P600 | kernel-src/arch/arm/mach-exynos/sec-common.c | C | gpl-2.0 | 374 |
/*
* This file is provided under a GPLv2 license. When using or
* redistributing this file, you may do so under that license.
*
* GPL LICENSE SUMMARY
*
* Copyright (C) 2016-2018 T-Platforms JSC All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under... | CSE3320/kernel-code | linux-5.8/drivers/ntb/hw/idt/ntb_hw_idt.c | C | gpl-2.0 | 92,553 |
/*
* Copyright (C) 2015-2016 Red Hat
* Copyright (C) 2015 Lyude Paul <thatslyude@gmail.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*/
#include <linux/kernel.h>
#incl... | mkvdv/au-linux-kernel-autumn-2017 | linux/drivers/input/rmi4/rmi_f03.c | C | gpl-3.0 | 6,710 |
/*
* xfrm algorithm interface
*
* Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
*
* 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... | talnoah/android_kernel_htc_dlx | virt/net/xfrm/xfrm_algo.c | C | gpl-2.0 | 13,675 |
#include <linux/capability.h>
#include <linux/fs.h>
#include <linux/posix_acl.h>
#include <linux/reiserfs_fs.h>
#include <linux/errno.h>
#include <linux/pagemap.h>
#include <linux/xattr.h>
#include <linux/slab.h>
#include <linux/posix_acl_xattr.h>
#include <linux/reiserfs_xattr.h>
#include <linux/reiserfs_acl.h>
#inclu... | KOala888/GB_kernel | linux_kernel_galaxyplayer-master/fs/reiserfs/xattr_acl.c | C | gpl-2.0 | 12,959 |
/*
* Battery and Power Management code for the Sharp SL-Cxx00
*
* Copyright (c) 2005 Richard Purdie
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/
#include <linux/mod... | AiJiaZone/linux-4.0 | virt/arch/arm/mach-pxa/spitz_pm.c | C | gpl-2.0 | 7,181 |
/* PR c/60156 */
/* { dg-do compile } */
/* { dg-options "-Wpedantic" } */
int
main (int argc, char *argv[], ...) /* { dg-warning "declared as variadic function" } */
{
return 0;
}
| selmentdev/selment-toolchain | source/gcc-latest/gcc/testsuite/c-c++-common/pr60156.c | C | gpl-3.0 | 184 |
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | CoderSherlock/Mondroid | kernelsource/msm/drivers/iommu/msm_iommu_perfmon.c | C | gpl-2.0 | 21,645 |
/******************************************************************************
* grant_table.c
*
* Granting foreign access to our memory reservation.
*
* Copyright (c) 2005-2006, Christopher Clark
* Copyright (c) 2004-2005, K A Fraser
*
* This program is free software; you can redistribute it and/or
* modify ... | mbrugg/MC-EWIO-KERNEL-ORG | drivers/xen/grant-table.c | C | gpl-2.0 | 16,930 |
/*
* PCI bus setup for Marvell mv64360/mv64460 host bridges (Discovery)
*
* Author: Dale Farnsworth <dale@farnsworth.org>
*
* 2007 (c) MontaVista, Software, Inc. This file is licensed under
* the terms of the GNU General Public License version 2. This program
* is licensed "as is" without any warranty of any k... | talnoah/android_kernel_htc_dlx | virt/arch/powerpc/sysdev/mv64x60_pci.c | C | gpl-2.0 | 4,340 |
/*
*
* (c) 1999 by Computone Corporation
*
********************************************************************************
*
* PACKAGE: Linux tty Device Driver for IntelliPort family of multiport
* serial I/O controllers.
*
* DESCRIPTION: Mainline code for the device driver
*
*****************... | moonlightly/kernel_htc_qsd8k | drivers/char/ip2/ip2main.c | C | gpl-2.0 | 103,557 |
/*
* kernel/power/suspend.c - Suspend to RAM and standby functionality.
*
* Copyright (c) 2003 Patrick Mochel
* Copyright (c) 2003 Open Source Development Lab
* Copyright (c) 2009 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc.
*
* This file is released under the GPLv2.
*/
#include <linux/string.h>
#include <linu... | csolg/hi35xx-buildroot | linux/linux-3.4.y/kernel/power/suspend.c | C | gpl-2.0 | 7,941 |
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
struct X { int i; };
int foo (int x)
{
struct X a;
struct X b;
struct X *p;
a.i = 1;
b.i = 2;
if (x)
p = &a;
else
p = &b;
return p->i;
}
/* We should eliminate the load from p for a PHI node with values 1 and 2. */
/* ... | SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-25.c | C | gpl-2.0 | 424 |
#include <stdio.h>
#include "../../util/util.h"
#include "../../util/hist.h"
#include "../../util/sort.h"
static size_t callchain__fprintf_left_margin(FILE *fp, int left_margin)
{
int i;
int ret = fprintf(fp, " ");
for (i = 0; i < left_margin; i++)
ret += fprintf(fp, " ");
return ret;
}
static si... | SanDisk-Open-Source/SSD_Dashboard | uefi/linux-source-3.8.0/tools/perf/ui/stdio/hist.c | C | gpl-2.0 | 11,412 |
/* $Id: hycapi.c,v 1.8.6.4 2001/09/23 22:24:54 kai Exp $
*
* Linux driver for HYSDN cards, CAPI2.0-Interface.
*
* Author Ulrich Albrecht <u.albrecht@hypercope.de> for Hypercope GmbH
* Copyright 2000 by Hypercope GmbH
*
* This software may be used and distributed according to the terms
* of the GNU General Pu... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.14/drivers/isdn/hysdn/hycapi.c | C | gpl-2.0 | 22,565 |
/* usb-urb.c is part of the DVB USB library.
*
* Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@desy.de)
* see dvb-usb-init.c for copyright information.
*
* This file keeps functions for initializing and handling the
* BULK and ISOC USB data transfers in a generic way.
* Can be used for DVB-only and a... | felixhaedicke/nst-kernel | src/drivers/media/dvb/dvb-usb/usb-urb.c | C | gpl-2.0 | 7,060 |
/*
* stk-webcam.c : Driver for Syntek 1125 USB webcam controller
*
* Copyright (C) 2006 Nicolas VIVIEN
* Copyright 2007-2008 Jaime Velasco Juan <jsagarribay@gmail.com>
*
* Some parts are inspired from cafe_ccic.c
* Copyright 2006-2007 Jonathan Corbet
*
* This program is free software; you can redistribute it a... | felixhaedicke/nst-kernel | src/drivers/media/video/stk-webcam.c | C | gpl-2.0 | 36,744 |
/*
* linux/arch/arm/mach-exynos/midas-gpio.c
*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* EXYNOS - GPIO setting in set board
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* pu... | arshull/GalaTab3_Kernel | arch/arm/sp7160lte-gpio.c | C | gpl-2.0 | 32,388 |
/*
* Provides ACPI support for IDE drives.
*
* Copyright (C) 2005 Intel Corp.
* Copyright (C) 2005 Randy Dunlap
* Copyright (C) 2006 SUSE Linux Products GmbH
* Copyright (C) 2006 Hannes Reinecke
*/
#include <linux/ata.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux... | felixhaedicke/nst-kernel | src/drivers/ide/ide-acpi.c | C | gpl-2.0 | 19,459 |
/*
* OMAP2xxx sys_clk-specific clock code
*
* Copyright (C) 2005-2008 Texas Instruments, Inc.
* Copyright (C) 2004-2010 Nokia Corporation
*
* Contacts:
* Richard Woodruff <r-woodruff2@ti.com>
* Paul Walmsley
*
* Based on earlier work by Tuukka Tikkanen, Tony Lindgren,
* Gordon McNutt and RidgeRun, Inc.
*
*... | KOala888/GB_kernel | linux_kernel_galaxyplayer-master/arch/arm/mach-omap2/clkt2xxx_sys.c | C | gpl-2.0 | 1,044 |
/*
* Copyright (C) 1995,2001 Compaq Computer Corporation
* Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
* Copyright (C) 2001 IBM Corp.
* Copyright (C) 2003-2004 Intel Corporation
* (c) Copyright 2009 Hewlett-Packard Development Company, L.P.
*
* All rights reserved.
*
* This program is free software;... | JijonHyuni/HyperKernel-JB | virt/drivers/pci/hotplug/pcihp_slot.c | C | gpl-2.0 | 7,231 |
/*
Hopper VP-3028 driver
Copyright (C) Manu Abraham (abraham.manu@gmail.com)
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 vers... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/drivers/media/pci/mantis/hopper_vp3028.c | C | gpl-2.0 | 2,334 |
/*
* IPV4 GSO/GRO offload support
* Linux INET implementation
*
* 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.
... | mingit/mstcp_v0.89.4 | net/ipv4/tcp_offload.c | C | gpl-2.0 | 7,625 |
/******************************************************************************
*
* Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Fr... | bas-t/linux_media | drivers/net/wireless/intel/iwlegacy/3945.c | C | gpl-2.0 | 77,620 |
/*
* Copyright (C) ST-Ericsson SA 2011-2013
*
* License Terms: GNU General Public License v2
*
* Author: Mathieu Poirier <mathieu.poirier@linaro.org> for ST-Ericsson
* Author: Jonas Aaberg <jonas.aberg@stericsson.com> for ST-Ericsson
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#inc... | systemdaemon/systemd | src/linux/drivers/watchdog/ux500_wdt.c | C | gpl-2.0 | 4,072 |
/*
* Copyright (C) 2010-2014 Michael Krufky (mkrufky@linuxtv.org)
*
* 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, version 2.
*
* see Documentation/dvb/README.dvb-usb for more info... | AiJiaZone/linux-4.0 | virt/drivers/media/usb/dvb-usb-v2/mxl111sf.c | C | gpl-2.0 | 40,078 |
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the 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 warran... | itgb/opCloudRouter | qca/src/linux/arch/arm/kernel/hw_breakpoint.c | C | gpl-2.0 | 25,909 |
/*
* Copyright (c) 2014 MediaTek Inc.
* Author: Flora Fu, MediaTek
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be... | mkvdv/au-linux-kernel-autumn-2017 | linux/drivers/soc/mediatek/mtk-pmic-wrap.c | C | gpl-3.0 | 32,578 |
/*
* PIKA Warp(tm) board specific routines
*
* Copyright (c) 2008-2009 PIKA Technologies
* Sean MacLennan <smaclennan@pikatech.com>
*
* 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... | AiJiaZone/linux-4.0 | virt/arch/powerpc/platforms/44x/warp.c | C | gpl-2.0 | 6,629 |
/* { dg-do run } */
/* { dg-options "-O2 -fpredictive-commoning -msse2 -std=c99" } */
/* { dg-require-effective-target sse2 } */
#include <x86intrin.h>
#include "isa-check.h"
#include "sse-os-support.h"
int main()
{
const float mem[8] = { 0, 1, 2, 3, 4, 5, 6, 7 };
unsigned int indexes[8];
for (unsigned ... | selmentdev/selment-toolchain | source/gcc-latest/gcc/testsuite/gcc.target/i386/pr52754.c | C | gpl-3.0 | 812 |
/*
* WM831x clock control
*
* Copyright 2011-2 Wolfson Microelectronics PLC.
*
* Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
*
* 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 Fo... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/drivers/clk/clk-wm831x.c | C | gpl-2.0 | 9,726 |
// SPDX-License-Identifier: GPL-2.0
/* Copyright(c) 1999 - 2018 Intel Corporation. */
#include "ixgbe.h"
#include "ixgbe_type.h"
#include "ixgbe_dcb.h"
#include "ixgbe_dcb_82598.h"
/**
* ixgbe_dcb_config_rx_arbiter_82598 - Config Rx data arbiter
* @hw: pointer to hardware structure
* @refill: refill credits index ... | CSE3320/kernel-code | linux-5.8/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c | C | gpl-2.0 | 7,657 |
/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 only,
* as published by the Free Software Foundation.
*
* This program is distributed... | mericon/Xp_Kernel_LGH850 | virt/drivers/staging/lustre/lnet/selftest/timer.c | C | gpl-2.0 | 6,057 |
/* sound/soc/samsung/s3c2412-i2s.c
*
* ALSA Soc Audio Layer - S3C2412 I2S driver
*
* Copyright (c) 2006 Wolfson Microelectronics PLC.
* Graeme Gregory graeme.gregory@wolfsonmicro.com
* linux@wolfsonmicro.com
*
* Copyright (c) 2007, 2004-2005 Simtec Electronics
* http://armlinux.simtec.co.uk/
* Ben Dooks <ben@... | ziqiaozhou/cachebar | source/sound/soc/samsung/s3c2412-i2s.c | C | gpl-2.0 | 5,328 |
/*
* Copyright (C) 2013 Shaohua Li <shli@kernel.org>
* Copyright (C) 2014 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is d... | EvanHa/rbp | linux/drivers/target/target_core_user.c | C | lgpl-3.0 | 29,274 |
#define _CRT_SECURE_NO_DEPRECATE
#include "wilc_strutils.h"
/*!
* @author syounan
* @date 18 Aug 2010
* @version 1.0
*/
s32 WILC_memcmp(const void *pvArg1, const void *pvArg2, u32 u32Count)
{
return memcmp(pvArg1, pvArg2, u32Count);
}
/*!
* @author syounan
* @date 18 Aug 2010
* @version 1.0
*/
void... | arunkuttiyara/linux | drivers/staging/wilc1000/wilc_strutils.c | C | gpl-2.0 | 1,383 |
/*
* Copyright © 2009 Intel Corporation
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WIT... | WhiteBearSolutions/WBSAirback | packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/drivers/staging/gma500/mrst_crtc.c | C | apache-2.0 | 16,818 |
/*
* Exynos specific support for Samsung pinctrl/gpiolib driver with eint support.
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
* http://www.samsung.com
* Copyright (c) 2012 Linaro Ltd
* http://www.linaro.org
*
* Author: Thomas Abraham <thomas.ab@samsung.com>
*
* This program is free software; you c... | mikedlowis-prototypes/albase | source/kernel/drivers/pinctrl/samsung/pinctrl-exynos.c | C | bsd-2-clause | 56,262 |
/*
* OMAP SRAM detection and management
*
* Copyright (C) 2005 Nokia Corporation
* Written by Tony Lindgren <tony@atomide.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.... | AiJiaZone/linux-4.0 | virt/arch/arm/mach-omap1/sram-init.c | C | gpl-2.0 | 1,919 |
/* arch/arm/mach-msm/cpufreq.c
*
* MSM architecture cpufreq driver
*
* Copyright (C) 2007 Google, Inc.
* Copyright (c) 2007-2012, Code Aurora Forum. All rights reserved.
* Author: Mike A. Chan <mikechan@google.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as ... | lindsaytheflint/stone | lfchanges/arch/arm/mach-msm/cpufreq.c | C | gpl-2.0 | 9,831 |
/*
* linux/arch/arm/mach-pxa/leds-lubbock.c
*
* Copyright (C) 2000 John Dorsey <john+@cs.cmu.edu>
*
* Copyright (c) 2001 Jeff Sutherland <jeffs@accelent.com>
*
* Original (leds-footbridge.c) by Russell King
*
* Major surgery on April 2004 by Nicolas Pitre for less global
* namespace collision. Mostly adapted... | felixhaedicke/nst-kernel | src/arch/arm/mach-pxa/leds-lubbock.c | C | gpl-2.0 | 2,177 |
/* { dg-do run } */
#include <stdarg.h>
#include "dfp-dbg.h"
void
f (int a, ...)
{
va_list ap;
if (a != 0)
FAILURE
va_start (ap, a);
if (va_arg (ap, _Decimal128) != 1.2DL)
FAILURE
if (va_arg (ap, _Decimal128) != 2.34DL)
FAILURE
if (va_arg (ap, _Decimal128) != 3.456DL)
FAILURE
if (va_arg ... | SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/gcc/testsuite/c-c++-common/dfp/pr36800.c | C | gpl-2.0 | 507 |
/*
* arch/sh/drivers/pci/ops-titan.c
*
* Ported to new API by Paul Mundt <lethal@linux-sh.org>
*
* Modified from ops-snapgear.c written by David McCullough
* Highly leveraged from pci-bigsur.c, written by Dustin McIntire.
*
* May be copied or modified under the terms of the GNU General Public
* License. See ... | felixhaedicke/nst-kernel | src/arch/sh/drivers/pci/ops-titan.c | C | gpl-2.0 | 1,842 |
/* linux/arch/arm/mach-s3c64xx/mach-mini6410.c
*
* Copyright 2010 Darius Augulis <augulis.darius@gmail.com>
* Copyright 2008 Openmoko, Inc.
* Copyright 2008 Simtec Electronics
* Ben Dooks <ben@simtec.co.uk>
* http://armlinux.simtec.co.uk/
*
* This program is free software; you can redistribute it and/or modify
... | iwinoto/v4l-media_build | media/arch/arm/mach-s3c64xx/mach-mini6410.c | C | gpl-2.0 | 8,953 |
/*
* Copyright (C) 2012 IBM Corporation
*
* Author: Ashley Lai <adlai@us.ibm.com>
*
* Maintained by: <tpmdd-devel@lists.sourceforge.net>
*
* Device driver for TCG/TCPA TPM (trusted platform module).
* Specifications at www.trustedcomputinggroup.org
*
* This program is free software; you can redistribute it an... | mericon/Xp_Kernel_LGH850 | virt/drivers/char/tpm/tpm_ibmvtpm.c | C | gpl-2.0 | 15,927 |
/*
* STMicroelectronics magnetometers driver
*
* Copyright 2012-2013 STMicroelectronics Inc.
*
* Denis Ciocca <denis.ciocca@st.com>
*
* Licensed under the GPL-2.
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/stat.h>
#include <linux/interrupt.h>
#include <linux/i... | AiJiaZone/linux-4.0 | virt/drivers/iio/magnetometer/st_magn_buffer.c | C | gpl-2.0 | 2,354 |
/*
* Copyright (c) 2003-2012 Broadcom Corporation
* All Rights Reserved
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* 1. Redistributions of source code must retain the above copyright
* General Public License (GPL) Versi... | prasidh09/cse506 | unionfs-3.10.y/drivers/staging/netlogic/platform_net.c | C | gpl-2.0 | 6,532 |
/*
* PowerMac G5 SMU driver
*
* Copyright 2004 J. Mayer <l_indien@magic.fr>
* Copyright 2005 Benjamin Herrenschmidt, IBM Corp.
*
* Released under the term of the GNU GPL v2.
*/
/*
* TODO:
* - maybe add timeout to commands ?
* - blocking version of time functions
* - polling version of i2c commands (inclu... | systemdaemon/systemd | src/linux/drivers/macintosh/smu.c | C | gpl-2.0 | 31,025 |
/*
* Setup code for SH7720, SH7721.
*
* Copyright (C) 2007 Markus Brunner, Mark Jonas
* Copyright (C) 2009 Paul Mundt
*
* Based on arch/sh/kernel/cpu/sh4/setup-sh7750.c:
*
* Copyright (C) 2006 Paul Mundt
* Copyright (C) 2006 Jamie Lenehan
*
* This file is subject to the terms and conditions of the G... | AiJiaZone/linux-4.0 | virt/arch/sh/kernel/cpu/sh3/setup-sh7720.c | C | gpl-2.0 | 7,530 |
/*
* intel_mid_thermal.c - Intel MID platform thermal driver
*
* Copyright (C) 2011 Intel Corporation
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as ... | eabatalov/au-linux-kernel-autumn-2017 | linux/drivers/platform/x86/intel_mid_thermal.c | C | gpl-3.0 | 13,960 |
/*
* High-level sync()-related operations
*/
#include <linux/kernel.h>
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/writeback.h>
#include <linux/syscalls.h>
#include <linux/linkage.h>
#include <linux/pagemap.h>
#include <linu... | gamvrosi/scrubber | linux-2.6.35/fs/sync.c | C | gpl-3.0 | 10,653 |
/*
* linux/arch/arm/mach-pxa/trizeps4.c
*
* Support for the Keith und Koep Trizeps4 Module Platform.
*
* Author: Jürgen Schindele
* Created: 20 02, 2006
* Copyright: Jürgen Schindele
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public ... | JijonHyuni/HyperKernel-JB | virt/arch/arm/mach-pxa/trizeps4.c | C | gpl-2.0 | 14,297 |
/* linux/drivers/spi/spi_s3c64xx.c
*
* Copyright (C) 2009 Samsung Electronics Ltd.
* Jaswinder Singh <jassi.brar@samsung.com>
*
* 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 vers... | gamvrosi/scrubber | linux-2.6.35/drivers/spi/spi_s3c64xx.c | C | gpl-3.0 | 31,285 |
/*
comedi/drivers/vmk80xx.c
Velleman USB Board Low-Level Driver
Copyright (C) 2009 Manuel Gebele <forensixs@gmx.de>, Germany
COMEDI - Linux Control and Measurement Device Interface
Copyright (C) 2000 David A. Schleef <ds@schleef.org>
This program is free software; you can redistribute it and/... | wkritzinger/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/drivers/staging/comedi/drivers/vmk80xx.c | C | gpl-2.0 | 31,851 |
/*
minibz2
libbz2.dll test program.
by Yoshioka Tsuneo (tsuneo@rr.iij4u.or.jp)
This file is Public Domain. Welcome any email to me.
usage: minibz2 [-d] [-{1,2,..9}] [[srcfilename] destfilename]
*/
#define BZ_IMPORT
#include <stdio.h>
#include <stdlib.h>
#include "bzlib.h"
#ifdef ... | vrtadmin/clamav-devel | win32/3rdparty/bzip2/dlltest.c | C | gpl-2.0 | 4,402 |
/*
* An RTC driver for Allwinner A10/A20
*
* Copyright (c) 2013, Carlo Caione <carlo.caione@gmail.com>
*
* 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, o... | maoze/linux-3-14-for-arm | linux-3.14/drivers/rtc/rtc-sunxi.c | C | gpl-3.0 | 14,149 |
/* ISC license. */
#include <unistd.h>
#include <errno.h>
#include <skalibs/gccattributes.h>
#include <skalibs/uint.h>
#include <skalibs/strerr2.h>
#include <skalibs/sgetopt.h>
#include <skalibs/cdb.h>
#include <skalibs/env.h>
#include <skalibs/djbunix.h>
#include <skalibs/webipc.h>
#include <execline/config.h>
#inclu... | rmoorman/s6 | src/conn-tools/s6-ipcserver-access.c | C | isc | 6,082 |
/*
* Copyright © 2013 Mozilla Foundation
*
* This program is made available under an ISC-style license. See the
* accompanying file LICENSE for details.
*/
#undef NDEBUG
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#if defined(HAVE_CONFIG_H)
#include "config.h"
#endif
#include "cubeb/cubeb.h"
#incl... | ieei/cubeb | src/cubeb.c | C | isc | 9,612 |
// Copyright (C) 2013 Nick Johnson <nickbjohnson4224 at gmail.com>
//
// Permission to use, copy, modify, and distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "A... | nickbjohnson4224/pinion64 | src/pinion64/api/interrupt.c | C | isc | 854 |
/**\file
*
* \copyright
* Copyright (c) 2008-2014, Kyuba Project Members
* \copyright
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation ... | kyuba/curie | src/string-set.c | C | mit | 10,816 |
/*
* Copyright (c) 2008-2012 the MansOS team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* this list of con... | IECS/MansOS | apps/tests/TimingTest/main.c | C | mit | 3,026 |
/**
* @file
* @brief HMC5883L command handlers.
* @copyright 2016 [DeviceHive](http://devicehive.com)
* @author Nikolay Khabarov
*/
#include "commands/hmc5883l_cmd.h"
#include "commands/i2c_cmd.h"
#include "devices/hmc5883l.h"
#include "DH/i2c.h"
#include "DH/adc.h"
#include "snprintf.h"
#include "dhcommand_parse... | devicehive/esp8266-firmware | firmware-src/sources/commands/hmc5883l_cmd.c | C | mit | 2,019 |
/*
* Copyright (c) 2018 Thomas Pornin <pornin@bolet.org>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, ... | pornin/CTTK | src/int31.c | C | mit | 51,525 |
/*
* Copyright 2007-2013 National ICT Australia (NICTA)
*
* This software may be used and distributed solely under the terms of
* the MIT license (License). You should find a copy of the License in
* COPYING or at http://opensource.org/licenses/MIT. By downloading or
* using this software you accept the terms an... | lees0414/EUproject | lib/client/text_writer.c | C | mit | 11,327 |
//
#include <stdio.h>
#include <math.h>
double distance(int x1, int y1, int x2, int y2);
int main () {
printf("distance between two points for points"
" x%d,y%d x%d,y%d: %f\n",
1, 1,//x1,y1
4, 4,//x2,y2
distance(1, 1, 4, 4)
);
printf("distance between two points for points"
" x%d,... | GabrielSorensen/CSIS3150 | holder for older programs/chomework/W1E6.c | C | mit | 696 |
/* BDD library profile printing routines */
#include "bddint.h"
#include <string.h>
static char profile_width[]="XXXXXXXXX";
static
void
#if defined(__STDC__)
chars(char c, int n, FILE *fp)
#else
chars(c, n, fp)
char c;
int n;
FILE *fp;
#endif
{
int i;
for (i=0; i < n; ++i... | pombredanne/metamorphosys-desktop | metamorphosys/META/externals/desert/DesertDll/bdd/bddprprofile.c | C | mit | 6,511 |
#include <pebble.h>
static Window *s_main_window;
static TextLayer *s_time_layer;
static void handle_second_tick(struct tm* tick_time, TimeUnits units_changed) {
// Needs to be static because it's used by the system later.
static char s_time_text[] = "00:00:00";
strftime(s_time_text, sizeof(s_time_text), "%T", ... | pebble-examples/classio | src/classio.c | C | mit | 1,776 |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "policy.h"
#include "xrandr.h"
#include "client.h"
#include <extnsionst.h>
#include <dixstruct.h>
#include <randrstr.h>
#include <X11/extensions/randr.h>
#include <X11/extensions/randrproto.h>
static const char *RequestName(unsigned short);
Bool
XrandrInit... | nemomobile-graveyard/xserver-policy-enforcement | src/xrandr.c | C | mit | 3,372 |
#include <stdio.h>
#include <ctype.h>
//forward declarations
int can_print_it(char ch);
void print_letters(char arg[]);
void print_arguments(int argc, char* argv[])
{
int i = 0;
for(i = 0; i < argc; i++)
{
print_letters(argv[i]);
}
}
void print_letters(char arg[])
{
int i = 0;
for(i = 0; arg[i... | iainsproat/learncthehardway | ex14/ex14.c | C | mit | 608 |
/*
** k2menu.c Interactive user menu for k2pdfopt.c.
**
** Copyright (C) 2015 http://willus.com
**
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU Affero General Public License as
** published by the Free Software Foundation, either version 3 of the
... | li-xinyang/AW_BetterPDFBookForKindle | k2pdfoptlib/k2menu.c | C | mit | 44,843 |
/*
* (c) Copyright 1993, 1994, Silicon Graphics, Inc.
* ALL RIGHTS RESERVED
* Permission to use, copy, modify, and distribute this software for
* any purpose and without fee is hereby granted, provided that the above
* copyright notice appear in all copies and that both the copyright notice
* and this permi... | timkrentz/SunTracker | IMU/VTK-6.2.0/ThirdParty/ftgl/demo/trackball.c | C | mit | 8,897 |
#include "matrix.h"
#include "mytime.h"
#define SIGN(X) ((X>=0.0 ? 1.0 : -1.0))
static void givens(double * a, double * b, double * d,
double sinphi, double cosphi,
unsigned int n, unsigned int i, unsigned int j){
unsigned int l;
double temp, g, h;
/* rt * a * r:... | briling/qm | source/math/jacobi.c | C | mit | 2,417 |
/*
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
*
* SPDX-License-Identifier: GPL-2.0+ BSD-3-Clause
*/
#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/arch/stm32.h>
static const struct udevice_id stm32mp_syscon_ids[] = {
{ .compatible = "st,stm32-stgen",
.data = STM32MP_... | guileschool/BEAGLEBONE-tutorials | BBB-firmware/u-boot-v2018.05-rc2/arch/arm/mach-stm32mp/syscon.c | C | mit | 491 |
//Generated by the Argon Build System
/*
Simple DirectMedia Layer
Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permi... | skylersaleh/ArgonEngine | common/SDL2/audio/sndio/SDL_sndioaudio.c | C | mit | 8,872 |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_wctomb.c :+: :+: :+: ... | kydavis/libft | src/ft_io/ft_wctomb.c | C | mit | 1,729 |
/*
checks if merging of freed blocks seems to work correctly
Author: Robert Rönngren 050218
*/
#include <stdio.h>
#include <stdlib.h>
#include "brk.h"
#include <unistd.h>
#define SIZE 16384
int main(int argc, char * argv[])
{
void *p1, *p2, *oldBrk, *newBrk1, *newBrk2;
unsigned long largeSize = SIZE;
#i... | saox/Malloc-Implementation | MEMORY/tstmerge.c | C | mit | 1,577 |
/**
* @file light.c
* @brief _ÌÀ
*
* Copyright (C) 2017 extsui, All rights reserved.
*/
#include "r_cg_macrodriver.h"
#include "r_cg_tau.h"
#include "r_cg_sau.h"
#include "r_cg_userdefine.h"
#include "iodefine.h"
#include "light.h"
#include <string.h>
#pragma interrupt r_csi01_interrupt... | extsui/7SegFinger | light.c | C | mit | 6,058 |
#include "video.h"
// Strings
const char * const welcome = "Welcome to PotatOS";
const char * const test = "Color test";
void main() {
char attr = style(WHITE, BROWN);
write_string(offset(8,22), welcome, attr);
int color_test = offset(11,0);
write_string(color_test, test, attr);
/*
for(c... | rjackson90/potatOS | src/kernel.c | C | mit | 600 |
#include "types.h"
#include "defs.h"
#include "gci.h"
#include "mist32.h"
struct gci_hub_info *gci_hub;
struct gci_hub_node *gci_hub_nodes;
struct gci_node gci_nodes[4];
/* GCI */
void gciinit(void)
{
char *node;
unsigned int i;
gci_hub = (struct gci_hub_info *)((char *)sriosr() + GCI_OFFSET);
gci_hub_node... | techno/xv6-mist32 | gci.c | C | mit | 683 |
/* gzread.c -- zlib functions for reading gzip files
* Copyright (C) 2004, 2005, 2010, 2011, 2012, 2013 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "gzguts.h"
#include <unistd.h>
/* Local functions */
local int gz_load OF((gz_statep, unsigned char *, unsigned, u... | EyesOfThings/Software | Platform Software/myriad/libs/leon/zlib/gzread.c | C | mit | 18,715 |
/* tokenize.c -- This file is part of ctools
*
* Copyright (C) 2015 - David Oberhollenzer
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#define TL_EXPORT
#include "tl_iterator.h"
#include "tl_string.h"
typedef struct {
tl_iterator s... | AgentD/ctools | main/src/string/tokenize.c | C | mit | 3,029 |
/*
* imap/select.c - issues and handles IMAP SELECT commands, as well as common
* responses from SELECT commands
*/
#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "imap/imap.h"
#include "internal/imap.h"
#include "log.h"
#include "util/list.... | SirCmpwn/aerc | src/imap/select.c | C | mit | 4,720 |
/*
* Copyright (c) 2019-2021 Genome Research Ltd.
* Author(s): James Bonfield
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* ... | imgag/ngs-bits | htslib/htscodecs/htscodecs/arith_dynamic.c | C | mit | 29,564 |
#include <zmq.h>
#include <malloc.h>
#include <strings.h>
#include <sys/queue.h>
#include <stdlib.h>
#include "websocket.h"
#include "log.h"
#include "zutils.h"
#include "resolve.h"
#include "uidgen.h"
#include "main.h"
#include "http.h"
#define MSG_CONNECT ((void *)1)
#define MSG_DISCONNECT ((void *)2)
typedef stru... | tailhook/debian-zerogw | src/websocket.c | C | mit | 36,450 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.