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 |
|---|---|---|---|---|---|
/*
* Copyright (C) 2011 Fujitsu. All rights reserved.
* Written by Miao Xie <miaox@cn.fujitsu.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License v2 as published by the Free Software Foundation.
*
* This program is distributed i... | ziqiaozhou/cachebar | source/fs/btrfs/delayed-inode.c | C | gpl-2.0 | 50,523 |
/*
* Driver for EHCI HCD on SPEAr SOC
*
* Copyright (C) 2010 ST Micro Electronics,
* Deepak Sikri <deepak.sikri@st.com>
*
* Based on various ehci-*.c drivers
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of this archive for
* more de... | geminy/aidear | oss/linux/linux-4.7/drivers/usb/host/ehci-spear.c | C | gpl-3.0 | 4,450 |
/**
* @file op_model_v6.c
* ARM11 Performance Monitor Driver
*
* Based on op_model_xscale.c
*
* @remark Copyright 2000-2004 Deepak Saxena <dsaxena@mvista.com>
* @remark Copyright 2000-2004 MontaVista Software Inc
* @remark Copyright 2004 Dave Jiang <dave.jiang@intel.com>
* @remark Copyright 2004 Intel Corporat... | mantera/WX_435_Kernel-CM7 | arch/arm/oprofile/op_model_v6.c | C | gpl-2.0 | 1,532 |
// SPDX-License-Identifier: GPL-2.0
/* Huawei HiNIC PCI Express Linux driver
* Copyright(c) 2017 Huawei Technologies Co., Ltd
*
* 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 Softwar... | HinTak/linux | drivers/net/ethernet/huawei/hinic/hinic_devlink.c | C | gpl-2.0 | 17,106 |
/*********************************************************************
*
* Filename: irlmp_frame.c
* Version: 0.9
* Description: IrLMP frame implementation
* Status: Experimental.
* Author: Dag Brattli <dagb@cs.uit.no>
* Created at: Tue Aug 19 02:09:59 1997
* Modified at: Mon Dec... | talnoah/android_kernel_htc_dlx | virt/net/irda/irlmp_frame.c | C | gpl-2.0 | 14,337 |
/*
* (C) Copyright 2010
* Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de
*
* See file CREDITS for list of people who contributed to this
* project.
*
* 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... | InternetBowser/plutos | u-boot-s805/board/gdsys/common/miiphybb.c | C | gpl-2.0 | 2,449 |
/*
* linux/drivers/mmc/core/mmc.c
*
* Copyright (C) 2003-2004 Russell King, All Rights Reserved.
* Copyright (C) 2005-2007 Pierre Ossman, All Rights Reserved.
* MMCv4 support Copyright (C) 2006 Philip Langdale, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* i... | uei/enchantmoon_kernel | linux-3.0/drivers/mmc/core/mmc.c | C | gpl-2.0 | 27,234 |
/*
* ptw32_cond_check_need_init.c
*
* Description:
* This translation unit implements condition variables and their primitives.
*
*
* --------------------------------------------------------------------------
*
* Pthreads-win32 - POSIX Threads Library for Win32
* Copyright(C) 1998 John E. Bossom
* ... | vehar/the_silver_searcher | wincompat/pthread/ptw32_cond_check_need_init.c | C | apache-2.0 | 2,551 |
// SPDX-License-Identifier: GPL-2.0+
/*
* i.MX drm driver - Television Encoder (TVEv2)
*
* Copyright (C) 2013 Philipp Zabel, Pengutronix
*/
#include <linux/clk-provider.h>
#include <linux/clk.h>
#include <linux/component.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#includ... | HinTak/linux | drivers/gpu/drm/imx/imx-tve.c | C | gpl-2.0 | 16,693 |
// SPDX-License-Identifier: GPL-2.0
/*
* CPUFreq governor based on scheduler-provided CPU utilization data.
*
* Copyright (C) 2016, Intel Corporation
* Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include "sched.h"
#include <linux/sched/cpufreq.h>
#inclu... | tprrt/linux-stable | kernel/sched/cpufreq_schedutil.c | C | gpl-2.0 | 23,858 |
/*
* MOSCHIP MCS7830 based (7730/7830/7832) USB 2.0 Ethernet Devices
*
* based on usbnet.c, asix.c and the vendor provided mcs7830 driver
*
* Copyright (C) 2010 Andreas Mohr <andi@lisas.de>
* Copyright (C) 2006 Arnd Bergmann <arnd@arndb.de>
* Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com>
* Copyr... | Andiry/Linux-xHCI-development | drivers/net/usb/mcs7830.c | C | gpl-2.0 | 18,293 |
/*
* drivers/power/process.c - Functions for starting/stopping processes on
* suspend transitions.
*
* Originally from swsusp.
*/
#undef DEBUG
#include <linux/interrupt.h>
#include <linux/oom.h>
#include <linux/suspend.h>
#include <linux/module.h>
#include <linux/syscalls.h>
#include ... | LDAP/android_kernel_motorola_msm8226 | kernel/power/process.c | C | gpl-2.0 | 5,012 |
/*
comedi/drivers/adl_pci7432.c
Hardware comedi driver fot PCI7432 Adlink card
Copyright (C) 2004 Michel Lachine <mike@mikelachaine.ca>
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... | KOala888/GB_kernel | linux_kernel_galaxyplayer-master/drivers/staging/comedi/drivers/adl_pci7432.c | C | gpl-2.0 | 5,891 |
/* Copyright (C) 2007-2012 B.A.T.M.A.N. contributors:
*
* Marek Lindner, Simon Wunderlich
*
* 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 Free Software Foundation.
*
* This program is distributed i... | SanDisk-Open-Source/SSD_Dashboard | uefi/linux-source-3.8.0/net/batman-adv/soft-interface.c | C | gpl-2.0 | 18,194 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2012 Avionic Design GmbH
* Copyright (C) 2012 NVIDIA CORPORATION. All rights reserved.
*/
#include <linux/clk.h>
#include <linux/debugfs.h>
#include <linux/delay.h>
#include <linux/hdmi.h>
#include <linux/math64.h>
#include <linux/module.h>
#include <linu... | CSE3320/kernel-code | linux-5.8/drivers/gpu/drm/tegra/hdmi.c | C | gpl-2.0 | 54,155 |
#include <linux/fanotify.h>
#include <linux/fcntl.h>
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/anon_inodes.h>
#include <linux/fsnotify_backend.h>
#include <linux/init.h>
#include <linux/mount.h>
#include <linux/namei.h>
#include <linux/poll.h>
#include <linux/security.h>
#include <linux/syscalls.h>
... | maoze/linux-3-14-for-arm | linux-3.14/fs/notify/fanotify/fanotify_user.c | C | gpl-3.0 | 22,999 |
/*
* nvec_ps2: mouse driver for a NVIDIA compliant embedded controller
*
* Copyright (C) 2011 The AC100 Kernel Team <ac100@lists.launchpad.net>
*
* Authors: Pierre-Hugues Husson <phhusson@free.fr>
* Ilya Petrov <ilya.muromec@gmail.com>
* Marc Dietrich <marvin24@gmx.de>
*
* This file is sub... | ljalves/linux_media | drivers/staging/nvec/nvec_ps2.c | C | gpl-2.0 | 4,372 |
/*
* Abilis Systems Single DVB-T Receiver
* Copyright (C) 2008 Pierrick Hascoet <pierrick.hascoet@abilis.com>
* Copyright (C) 2010 Devin Heitmueller <dheitmueller@kernellabs.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publ... | prasidh09/cse506 | unionfs-3.10.y/drivers/staging/media/as102/as10x_cmd.c | C | gpl-2.0 | 11,439 |
/*
* Copyright (c) 2013 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | native-toolkit/vpx | vpx_dsp/arm/idct16x16_neon.c | C | bsd-3-clause | 7,716 |
/*
* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright not... | sktjdgns1189/android_kernel_lge_f180k | drivers/staging/prima_kk_2_7/CORE/VOSS/src/vos_timer.c | C | gpl-2.0 | 29,690 |
/*
* Realtek RTL28xxU DVB USB driver
*
* Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
* Copyright (C) 2011 Antti Palosaari <crope@iki.fi>
* Copyright (C) 2012 Thomas Mair <thomas.mair86@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of th... | jarodwilson/linux-muck | drivers/media/usb/dvb-usb-v2/rtl28xxu.c | C | gpl-2.0 | 51,677 |
/*
* isph3a.c
*
* TI OMAP3 ISP - H3A module
*
* Copyright (C) 2010 Nokia Corporation
* Copyright (C) 2009 Texas Instruments, Inc.
*
* Contacts: David Cohen <dacohen@gmail.com>
* Laurent Pinchart <laurent.pinchart@ideasonboard.com>
* Sakari Ailus <sakari.ailus@iki.fi>
*
* This program is free softw... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/drivers/media/platform/omap3isp/isph3a_aewb.c | C | gpl-2.0 | 10,609 |
/*
BlueZ - Bluetooth protocol stack for Linux
Copyright (c) 2000-2001, 2010, Code Aurora Forum. All rights reserved.
Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License versi... | pitichai/pi2 | net/bluetooth/hci_event.c | C | gpl-2.0 | 117,520 |
/* Copyright (c) 2007-2008 CSIRO
Copyright (c) 2007-2009 Xiph.Org Foundation
Written by Jean-Marc Valin */
/**
@file pitch.c
@brief Pitch analysis
*/
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
... | YuxuanLing/trunk | trunk/references/opus-1.1.4/celt/pitch.c | C | gpl-3.0 | 14,787 |
/*
* Authors: Xiangfu Liu <xiangfu.z@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
* 3 of the License, or (at your option) any later version.
*/
#include <c... | ratopi/freifunk-ffm-firmware | package/uboot-xburst/files/board/nanonote/nanonote.c | C | gpl-2.0 | 2,478 |
/*
* Xen mmu operations
*
* This file contains the various mmu fetch and update operations.
* The most important job they must perform is the mapping between the
* domain's pfn and the overall machine mfns.
*
* Xen allows guests to directly update the pagetable, in a controlled
* fashion. In other words, the g... | zhengsjembest/linux_am335x | linux-3.2.0-psp04.06.00.08.sdk/arch/x86/xen/mmu.c | C | gpl-2.0 | 58,997 |
/*
* wm8804.c -- WM8804 S/PDIF transceiver driver
*
* Copyright 2010-11 Wolfson Microelectronics plc
*
* Author: Dimitris Papastamos <dp@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 version 2 as
* ... | Alex131089/raspberrypi-linux-3.6 | sound/soc/codecs/wm8804.c | C | gpl-2.0 | 20,219 |
/*
* Sony MemoryStick Pro storage support
*
* Copyright (C) 2007 Alex Dubov <oakad@yahoo.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.
*
* Special thanks to Carlos ... | dperezde/little-penguin | linux/drivers/memstick/core/mspro_block.c | C | gpl-2.0 | 39,874 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2012, Intel Corporation
* Copyright (c) 2015, Red Hat, Inc.
* Copyright (c) 2015, 2016 Linaro Ltd.
*/
#define pr_fmt(fmt) "ACPI: SPCR: " fmt
#include <linux/acpi.h>
#include <linux/console.h>
#include <linux/kernel.h>
#include <linux/serial_core.h>
/*
... | Naoya-Horiguchi/linux | drivers/acpi/spcr.c | C | gpl-2.0 | 5,970 |
/*
* linux/fs/nfs/read.c
*
* Block I/O for NFS
*
* Partial copy of Linus' read cache modifications to fs/nfs/file.c
* modified for async RPC by okir@monad.swb.de
*/
#include <linux/time.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/fcntl.h>
#include <linux/stat.h>
#include <linux/mm.h>
#... | chaoling/test123 | linux-2.6.39/fs/nfs/read.c | C | gpl-2.0 | 17,819 |
/* { dg-options "-mr10k-cache-barrier=store" } */
/* Test that indirect calls are protected. */
int bar (int);
NOMIPS16 void
foo (void (*fn) (void), int x)
{
if (x)
(*fn) ();
}
/* { dg-final { scan-assembler-times "\tcache\t" 1 } } */
| selmentdev/selment-toolchain | source/gcc-latest/gcc/testsuite/gcc.target/mips/r10k-cache-barrier-13.c | C | gpl-3.0 | 246 |
// SPDX-License-Identifier: GPL-2.0
/*
* BMI160 - Bosch IMU (accel, gyro plus external magnetometer)
*
* Copyright (c) 2016, Intel Corporation.
* Copyright (c) 2019, Martin Kelly.
*
* IIO core driver for BMI160, with support for I2C/SPI busses
*
* TODO: magnetometer, hardware FIFO
*/
#include <linux/module.h>
... | CSE3320/kernel-code | linux-5.8/drivers/iio/imu/bmi160/bmi160_core.c | C | gpl-2.0 | 21,081 |
/*
* Copyright (C) 2014 Uwe Kleine-Koenig for Pengutronix
*
* 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/module.h>
#include <linux/platform_device.h>
#inclu... | mericon/Xp_Kernel_LGH850 | virt/drivers/i2c/busses/i2c-efm32.c | C | gpl-2.0 | 12,736 |
/*
* MPC86xx HPCN board specific routines
*
* Recode: ZHANG WEI <wei.zhang@freescale.com>
* Initial author: Xianghua Xiao <x.xiao@freescale.com>
*
* Copyright 2006 Freescale Semiconductor Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General P... | felixhaedicke/nst-kernel | src/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | C | gpl-2.0 | 3,847 |
/*
* kernel/mutex-debug.c
*
* Debugging code for mutexes
*
* Started by Ingo Molnar:
*
* Copyright (C) 2004, 2005, 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>
*
* lock debugging, locking tree, deadlock detection started by:
*
* Copyright (C) 2004, LynuxWorks, Inc., Igor Manyilov, Bill Huey
* Relea... | felixhaedicke/nst-kernel | src/kernel/mutex-debug.c | C | gpl-2.0 | 3,117 |
/*
* Linux IPv6 multicast routing support for BSD pim6sd
* Based on net/ipv4/ipmr.c.
*
* (c) 2004 Mickael Hoerdt, <hoerdt@clarinet.u-strasbg.fr>
* LSIIT Laboratory, Strasbourg, France
* (c) 2004 Jean-Philippe Andriot, <jean-philippe.andriot@6WIND.com>
* 6WIND, Paris, France
* Copyright (C)2007,2008 USAGI/WIDE... | felixhaedicke/nst-kernel | src/net/ipv6/ip6mr.c | C | gpl-2.0 | 40,668 |
/* sunvdc.c: Sun LDOM Virtual Disk Client.
*
* Copyright (C) 2007, 2008 David S. Miller <davem@davemloft.net>
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/blkdev.h>
#include <linux/hdreg.h>
#include <linux/genhd.h>
#include <linux/slab.h>
#include <linux/spinlock.h... | felixhaedicke/nst-kernel | src/drivers/block/sunvdc.c | C | gpl-2.0 | 19,747 |
/*
* Copyright (C) 2008-2009 ST-Ericsson AB
* License terms: GNU General Public License (GPL) version 2
* TCM memory handling for ARM systems
*
* Author: Linus Walleij <linus.walleij@stericsson.com>
* Author: Rickard Andersson <rickard.andersson@stericsson.com>
*/
#include <linux/init.h>
#include <linux/kernel.h... | mericon/Xp_Kernel_LGH850 | virt/arch/arm/kernel/tcm.c | C | gpl-2.0 | 8,271 |
/*
* linux/net/sunrpc/gss_spkm3_mech.c
*
* Copyright (c) 2003 The Regents of the University of Michigan.
* All rights reserved.
*
* Andy Adamson <andros@umich.edu>
* J. Bruce Fields <bfields@umich.edu>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted ... | wkritzinger/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/net/sunrpc/auth_gss/gss_spkm3_mech.c | C | gpl-2.0 | 6,732 |
//------------------------------------------------------------------------------
// <copyright file="wlan_utils.c" company="Atheros">
// Copyright (c) 2004-2010 Atheros Corporation. All rights reserved.
//
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee... | sktjdgns1189/android_kernel_samsung_SHW-M340S | drivers/stagings/ath6kl/wlan/src/wlan_utils.c | C | gpl-2.0 | 1,977 |
/*
* IT8712F "Smart Guardian" Watchdog support
*
* Copyright (c) 2006-2007 Jorge Boncompte - DTI2 <jorge@dti2.net>
*
* Based on info and code taken from:
*
* drivers/char/watchdog/scx200_wdt.c
* drivers/hwmon/it87.c
* IT8712F EC-LPC I/O Preliminary Specification 0.8.2
* IT8712F EC-LPC I/O Preliminary Specific... | wkritzinger/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/drivers/watchdog/it8712f_wdt.c | C | gpl-2.0 | 9,301 |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2013 Patrick McHardy <kaber@trash.net>
*/
#include <linux/netfilter_ipv6/ip6_tables.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter/xt_SYNPROXY.h>
#include <net/netfilter/nf_synproxy.h>
static unsigned int
synproxy_tg6(struct sk_buff *s... | Naoya-Horiguchi/linux | net/ipv6/netfilter/ip6t_SYNPROXY.c | C | gpl-2.0 | 3,182 |
/*
* linux/ipc/msg.c
* Copyright (C) 1992 Krishna Balasubramanian
*
* Removed all the remaining kerneld mess
* Catch the -EFAULT stuff properly
* Use GFP_KERNEL for messages as in 1.2
* Fixed up the unchecked user space derefs
* Copyright (C) 1998 Alan Cox & Andi Kleen
*
* /proc/sysvipc/msg support (c) 1999 D... | go2ev-devteam/Gplus_2159_0801 | openplatform/sdk/os/kernel-2.6.32/ipc/msg.c | C | gpl-2.0 | 21,358 |
/* linux/arch/arm/mach-exynos/bts.c
*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
* http://www.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 version 2 of th... | guylamar2006/android_kernel_samsung_smdk4412 | arch/arm/mach-exynos/bts.c | C | gpl-2.0 | 12,887 |
/*
* Copyright (c) 2014 Open Grid Computing, Inc. All rights reserved.
* Copyright (c) 2005-2006 Network Appliance, Inc. 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
* General Public License (GPL) Vers... | patjak/linux | net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | C | gpl-2.0 | 19,651 |
/*
* Regulator driver for STw4810/STw4811 VMMC regulator.
*
* Copyright (C) 2013 ST-Ericsson SA
* Written on behalf of Linaro for ST-Ericsson
*
* Author: Linus Walleij <linus.walleij@linaro.org>
*
* License terms: GNU General Public License (GPL) version 2
*/
#include <linux/err.h>
#include <linux/init.h>
#in... | systemdaemon/systemd | src/linux/drivers/regulator/stw481x-vmmc.c | C | gpl-2.0 | 2,754 |
/*
* Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
* 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 as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your opt... | SanDisk-Open-Source/SSD_Dashboard | uefi/linux-source-3.8.0/drivers/staging/vt6655/tkip.c | C | gpl-2.0 | 9,405 |
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
/* Copyright 2019 NXP */
#include <linux/fsl/enetc_mdio.h>
#include <linux/of_mdio.h>
#include "enetc_pf.h"
#define ENETC_MDIO_DEV_ID 0xee01
#define ENETC_MDIO_DEV_NAME "FSL PCIe IE Central MDIO"
#define ENETC_MDIO_BUS_NAME ENETC_MDIO_DEV_NAME " Bus"
#define ENETC... | CSE3320/kernel-code | linux-5.8/drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c | C | gpl-2.0 | 2,601 |
// SPDX-License-Identifier: GPL-2.0
/*
* <linux/swait.h> (simple wait queues ) implementation:
*/
#include "sched.h"
void __init_swait_queue_head(struct swait_queue_head *q, const char *name,
struct lock_class_key *key)
{
raw_spin_lock_init(&q->lock);
lockdep_set_class_and_name(&q->lock, key, name);
INIT_... | CSE3320/kernel-code | linux-5.8/kernel/sched/swait.c | C | gpl-2.0 | 3,700 |
/*
* X.25 Packet Layer release 002
*
* This is ALPHA test software. This code may break your machine,
* randomly fail to work with new releases, misbehave and/or generally
* screw up. It might even work.
*
* This code REQUIRES 2.4 with seq_file support
*
* This module:
* This module is free software; you can... | felixhaedicke/nst-kernel | src/net/x25/x25_proc.c | C | gpl-2.0 | 7,911 |
/* Test for C99 designated initializers */
/* Origin: Jakub Jelinek <jakub@redhat.com> */
/* { dg-do run } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
typedef __SIZE_TYPE__ size_t;
typedef __WCHAR_TYPE__ wchar_t;
extern int memcmp (const void *, const void *, size_t);
extern void abort (void);
extern ... | SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/gcc/testsuite/gcc.dg/c99-init-1.c | C | gpl-2.0 | 2,314 |
/*
* Marvell Armada XP SoC clocks
*
* Copyright (C) 2012 Marvell
*
* Gregory CLEMENT <gregory.clement@free-electrons.com>
* Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
* Andrew Lunn <andrew@lunn.ch>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This prog... | AiJiaZone/linux-4.0 | virt/drivers/clk/mvebu/armada-xp.c | C | gpl-2.0 | 5,600 |
/* bnx2i_hwi.c: QLogic NetXtreme II iSCSI driver.
*
* Copyright (c) 2006 - 2013 Broadcom Corporation
* Copyright (c) 2007, 2008 Red Hat, Inc. All rights reserved.
* Copyright (c) 2007, 2008 Mike Christie
* Copyright (c) 2014, QLogic Corporation
*
* This program is free software; you can redistribute it and/or m... | AiJiaZone/linux-4.0 | virt/drivers/scsi/bnx2i/bnx2i_hwi.c | C | gpl-2.0 | 84,822 |
/*
* ALPS touchpad PS/2 mouse driver
*
* Copyright (c) 2003 Neil Brown <neilb@cse.unsw.edu.au>
* Copyright (c) 2003-2005 Peter Osterlund <petero2@telia.com>
* Copyright (c) 2004 Dmitry Torokhov <dtor@mail.ru>
* Copyright (c) 2005 Vojtech Pavlik <vojtech@suse.cz>
* Copyright (c) 2009 Sebastian Kapfer <sebastian_k... | ziqiaozhou/cachebar | source/drivers/input/mouse/alps.c | C | gpl-2.0 | 60,306 |
/*
* linux/arch/arm/mach-pnx4008/serial.c
*
* PNX4008 UART initialization
*
* Copyright: MontaVista Software Inc. (c) 2005
*
* 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 Foundati... | JijonHyuni/HyperKernel-JB | virt/arch/arm/mach-pnx4008/serial.c | C | gpl-2.0 | 1,661 |
/*
* Renesas Solutions Highlander R7780MP Support.
*
* Copyright (C) 2002 Atom Create Engineering Co., Ltd.
* Copyright (C) 2006 Paul Mundt
* Copyright (C) 2007 Magnus Damm
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory ... | felixhaedicke/nst-kernel | src/arch/sh/boards/mach-highlander/irq-r7780mp.c | C | gpl-2.0 | 1,938 |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Forwarding database
* Linux ethernet bridge
*
* Authors:
* Lennert Buytenhek <buytenh@gnu.org>
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/rculist.h>
#include <linux/spinlock.h>
#include <linux/times.h>
#include <linux/netdevice.h>
#incl... | mpe/powerpc | net/bridge/br_fdb.c | C | gpl-2.0 | 33,505 |
/*
* Copyright (C) 2000-2003 Axis Communications AB
*
* Authors: Bjorn Wesen (bjornw@axis.com)
* Mikael Starvik (starvik@axis.com)
* Tobias Anderberg (tobiasa@axis.com), CRISv32 port.
*
* This file handles the architecture-dependent parts of process handling..
*/
#include <linux/sc... | KOala888/GB_kernel | linux_kernel_galaxyplayer-master/arch/cris/arch-v32/kernel/process.c | C | gpl-2.0 | 6,991 |
/* See LICENSE file for copyright and licensing details */
#include <SDL.h>
#include "int.h"
#include "tile.h"
tileoffs_t dungeon_tileoffs [] =
{
{ 0, 0 }, // floor
{ 0, 1 },
{ 2, 0 }, // north wall
{ 2, 1 },
{ 2, 2 },
{ 2, 3 },
{ 2, 4 },
{ 2, 5 },
{ 3, 0 }, // east wall
{ 3, 1 },
{ 3, 2 },
{ 3, 3 },
{ 3... | entropixel/nemesis | src/tile.c | C | isc | 1,621 |
/*
* Copyright (C) 2004-2013 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000, 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permis... | WigWagCo/node-isc-dhclient | deps/isc-dhcp/bind/bind-expanded-tar/lib/dns/gssapictx.c | C | isc | 22,422 |
/* See LICENSE file for copyright and license details. */
#include <errno.h>
#include <stdio.h>
#include <string.h>
#if defined(__linux__)
#include <limits.h>
#include <string.h>
#elif defined(__OpenBSD__)
#include <sys/ioctl.h>
#include <fcntl.h>
#include <unistd.h>
#include <machine/apmvar.h>
#endif
#include "../uti... | R41z/slstatus | components/battery.c | C | isc | 1,854 |
/* ISC license. */
#include <unistd.h>
#include <skalibs/stralloc.h>
#include <skalibs/djbunix.h>
int sareadlink (stralloc *sa, char const *path)
{
size_t n = 128 ;
int wasnull = !sa->s ;
ssize_t r ;
for (;;)
{
if (!stralloc_readyplus(sa, n)) goto err ;
r = readlink(path, sa->s + sa->len, n) ;
... | skarnet/skalibs | src/libstddjb/sareadlink.c | C | isc | 479 |
#include <string.h>
#include <sys/uio.h>
#include "message.h"
#include "queue.h"
/*!
* \ingroup mptQueue
* \brief preview next message
*
* Get length/start of next message on queue.
*
* \param qu source queue
*
* \return (decoded) message length
*/
extern ssize_t mpt_queue_peek(MPT_STRUCT(decode_queue)... | becm/mpt-base | mptcore/queue/queue_peek.c | C | isc | 1,905 |
#include <stdbool.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 199309L
#error "_POSIX_C_SOURCE >= 199309L required for clock_gettime"
#endif
#if !defined(_POSIX_TIMERS) || _POSIX_TIMERS < 1
#error "clock_gettime not supported!"
#endif
#include "tempo/... | cventus/otivm | src/tempo/posix/clock.c | C | isc | 1,176 |
/* Copyright (c) 2007-2015 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "dbox-attachment.h"
#include "sdbox-storage.h"
#include "sdbox-file.h"
#include "sdbox-sync.h"
#define SDBOX_REBUILD_COUNT 3
static void
dbox_sync_file_move_if_needed(struct dbox_file *file,
enum sdbox_syn... | dscho/dovecot | src/lib-storage/index/dbox-single/sdbox-sync.c | C | mit | 9,049 |
#include "types.h"
#include "user.h"
#include "x86.h"
#define NULL 0
mpthread_sem_t forks[5];
mpthread_mutex_t mutex;
int left(int p)
{
return p;
}
int right(int p)
{
return (p + 1) % 5;
}
void getForks(int p)
{
pthread_mutex_lock(&mutex);
printf(1, "%d tries to get forks\n", p);
pthread_mutex_unl... | zzddhhtjzz/xv6 | philosophers.c | C | mit | 1,568 |
// Copyright 2016 Mitchell Kember. Subject to the MIT License.
#include "problems.h"
#include "test.h"
#include "util.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
// Default values for some parameters.
#define DEFAULT_POS_ITERS 5
#define DEFAULT_NEG_ITERS 5
#define DEFAULT_JOBS 1
// Maximum values ... | mk12/semaphores | src/main.c | C | mit | 3,494 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "bee.h"
static int conn_status = 0;
int status_cb(void *ctx, int status)
{
if(status == BEE_CONNECTED){
printf("connect/subscribe to server\n");
conn_status = 1;
}
return 0;
}
void get_ver(char *src, stru... | kaija/bee | sample/offline.c | C | mit | 1,834 |
#include "k_defines.h"
#include "descriptor.h"
idtr IDTR;
x86_interrupt IDT[256];// = (x86_interrupt*)0xD00;
void loadIDTR()
{
IDTR.limit = 256*(sizeof(x86_interrupt)-1);
IDTR.base = IDT;
idtr *IDTRptr = &IDTR;
/* load IDTR with lidt */
asm volatile("LIDT %0 ": :"m" (IDTR));
// asm volatile("... | paule32/deBlows | boot/idt.c | C | mit | 919 |
/*
* Windows Service related function definitions
* By Raju Krishnappa(raju_krishnappa@yahoo.com)
*
*/
#ifdef WIN32
#include <windows.h>
#include <tchar.h>
#include <stdio.h> /* sprintf */
#include <process.h> /* beginthreadex */
#include <net-snmp/library/winservice.h>
#ifdef mingw32 /* MinGW doesn't fully... | Ronald-C/SNMP-Mangement | lib/net-snmp/snmplib/winservice.c | C | mit | 28,689 |
/*! Time managing functions */
#define _K_TIME_C_
#include "time.h"
#include "memory.h"
#include <kernel/kprint.h>
#include <kernel/errno.h>
#include <kernel/features.h>
#include <arch/time.h>
#include <arch/processor.h>
void kclock_wake_up ( sigval_t sigval );
void kclock_interrupt_sleep ( void *source );
int ktime... | l30nard0/Benu | Chapter_04_Timer/02_One_timer/kernel/time.c | C | mit | 11,929 |
/* This program calculates and prints the sum of
three numbers input by the user at the keyboard.
Written by: Niraj Menon
Date: 1/20/2017 */
#include <stdio.h>
int main (void)
{
// Local Declarations
int in = 0; // Stores accepted number from user
int out = 0; // S... | norandomtechie/CS-159 | lab01/lab01_threeNum_part3.c | C | mit | 981 |
// file ldv-regression/alias_of_return.c_true-unreach-call.i
// from SV-COMP (revision 9113fca)
int *return_self(int *p) { return p; }
void test_assert(int);
int main() {
int a = 1, *q;
q = return_self(&a);
*q = 2;
test_assert(a == 2);
return 0;
}
| mchalupa/dg | tests/slicing/sources/alias_of_return.c | C | mit | 272 |
#include "../src/config.h"
#include "../src/uwt-worker.h"
#include <glob.h>
#include <string.h>
#include <caml/mlvalues.h>
#include <caml/memory.h>
#include <caml/alloc.h>
#include <caml/fail.h>
static char *
custom_strdup (const char *s)
{
size_t len;
void *n;
if ( s == NULL ){
return NULL;
}
len = strl... | fdopen/uwt | examples/glob_stubs.c | C | mit | 2,589 |
#include "arch/target/amd64.h"
#include "bt/bins.h"
#include "container/byte_buf.h"
#include "container/list.h"
#include "container/varstore.h"
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/mman.h>
#define TEST_ITERATIONS 4
/* Executable memory for copying and running ... | endeav0r/bt | src/test/test_amd64.c | C | mit | 29,109 |
#include <math.h>
#include <LCUI.h>
#include <LCUI/image.h>
#define PixelManipulationBegin \
int x, y; \
LCUI_Color pixel; \
\
for (y = rect.y; y < rect.y + rect.height; ++y) { \
... | lc-soft/LCUI | test/test_pixel_manipulation.c | C | mit | 1,944 |
#include <stdlib.h>
#include "utils/log.h"
#include "controller/controller.h"
typedef struct hook_function_t {
void(*fp)(controller *ctrl, int act_type);
controller *source;
} hook_function;
void controller_init(controller *ctrl) {
list_create(&ctrl->hooks);
ctrl->extra_events = NULL;
ctrl->har = ... | pmjdebruijn/openomf | src/controller/controller.c | C | mit | 3,792 |
/*
* systemcnf
*
* Small program that outputs a system.cnf file to standard output
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
int tcb = 4;
int event = 16;
unsigned int stack = 0x801FFFF0;
int main(int argc, char *argv[])
{
int x;
if(argc < 2)
{
printf("systemcnf\n")... | arthurpessoa/psxsdk | tools/systemcnf.c | C | mit | 1,053 |
/*
* moblur.c: Motion blur demo
*
* (C) Copyright Simon Frankau 1999-2014
*/
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "tracer.h"
#include "png_render.h"
#define WIDTH 1024
#define HEIGHT 512
static light lights[] = {
{{10.0, 10.0, 3.0}, {1.0, 1.0, 1.0}, {0.0, 0.0, ... | simon-frankau/sphere-tracer | moblur.c | C | mit | 2,528 |
/*
* ***** BEGIN LICENSE BLOCK *****
* Version: MIT
*
* Portions created by VMware are Copyright (c) 2007-2012 VMware, Inc.
* All Rights Reserved.
*
* Portions created by Tony Garnock-Jones are Copyright (c) 2009-2010
* VMware, Inc. and Tony Garnock-Jones. All Rights Reserved.
*
* Permission is hereby granted... | IsCoolEntertainment/debpkg_librabbitmq | tests/test_parse_url.c | C | mit | 5,280 |
/*
* Copyright (C) 2011 Doubango Telecom <http://www.doubango.org>
*
* Contact: Mamadou Diop <diopmamadou(at)doubango(dot)org>
*
* This file is part of Open Source Doubango Framework.
*
* DOUBANGO is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as ... | PeterXu/perfume | rtcall/doubango/tinyDAV/src/codecs/vpx/tdav_codec_vp8.c | C | mit | 31,826 |
/*
* Copyright Mehdi Sotoodeh. All rights reserved.
* <mehdisotoodeh@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that source code retains the
* above copyright notice and following disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE C... | msotoodeh/integer-encoder | test/test_ayden64.c | C | mit | 4,446 |
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2013, 2014 Damien P. George
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... | Vogtinator/micropython | py/emitcpy.c | C | mit | 28,601 |
/*Further examples of pointers*/
#include <stdio.h>
int main (void)
{
char c = 'Q';
char *char_pointer = &c;
printf ("%c %c %i\n", c, *char_pointer, *char_pointer);
c = '/';
printf ("%c %c\n", c, *char_pointer);
*char_pointer = '(';
printf ("%c %c\n", c, *char_pointer);
return 0;
}... | tykowale/learningC | ProgrammingInC/chapter11/ex2.c | C | mit | 322 |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "style.h"
#include "helper/generic_function.h"
#include "helper/debug.h"
/** @brief 建立圖形池
* @param size 圖形池可以保存的的 Style 最大數量
*/
Style_Pool_Access Style_Pool_start(int size)
{
Style_Access style_memory = calloc(size, sizeof(Style));
Style_Poo... | drm343/MyWorld | src/graphic/style.c | C | mit | 4,249 |
#define _CRT_SECURE_NO_WARNINGS
#include "Hardware_windmill.h"
#include <stdlib.h>
#include <string.h>
JNIEXPORT jfloat JNICALL Java_Hardware_windmill_energyProduction(JNIEnv * var, jclass var2){
jfloat test = 3.0;
return test;
}
/*
* Class: Hardware_windmill
* Method: turnOn
* Signature: (I)I
*/
JNIEXPORT j... | jmdbo/IS | src/trab1/trab1_VS/trab1_dll/Hardware_windmill.c | C | mit | 824 |
/* binary search */
/* return whether v is in sorted array x; n is the number of elements of x */
int search(unsigned int n, unsigned int *x, unsigned int v) {
unsigned int left = 0;
unsigned int right = n;
unsigned int i;
while (right > left) {
i = left + (right - left)/2;
/* invariant: left <= i < ri... | tjim/smpcc | examples/binsearch.c | C | mit | 682 |
/* vax860_sbia.c: VAX 8600 SBIA
Copyright (c) 2011-2012, Matt Burke
This module incorporates code from SimH, Copyright (c) 2004-2008, Robert M Supnik
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to dea... | j-hoppe/BlinkenBone | projects/02.3_simh/4.x+realcons/src/VAX/vax860_sbia.c | C | mit | 12,388 |
// RUN: %check %s -fshow-inlined -finline-functions
// inline
int f(int x)
{
return x + 1;
}
int h(int);
// don't inline
int g(int x)
{
int t = x;
for(int i = 0; i < 10; i++)
t += h(i);
t++;
return t * x;
}
int main()
{
printf("%d\n", f(5)); // CHECK: note: function inlined
printf("%d\n", g(5)); // CHECK... | 8l/ucc-c-compiler | test2/inline/heuristic.c | C | mit | 344 |
/*
* This file is part of the kyuba.org Khonsu project.
* See the appropriate repository at http://git.kyuba.org/ for exact file
* modification records.
*/
/*
* Copyright (c) 2009, Kyuba Project Members
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and assoc... | kyuba/khonsu | tests/path-manipulation.c | C | mit | 7,564 |
/*
* FreeRTOS+FAT Labs Build 160919 (C) 2016 Real Time Engineers ltd.
* Authors include James Walmsley, Hein Tibosch and Richard Barry
*
*******************************************************************************
***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
*** ... | tipstrying/stm32f10x_makefile_freertos | FreeRTOS/FreeRTOS-Plus-FAT/ff_fat.c | C | mit | 48,060 |
//! gcc -o asdb.so asdb.c -W -Wall -O0 -g -std=gnu99 -shared -fPIC -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lglib-2.0 -lsqlite3 -fsyntax-only -Wno-unused-parameter -Wno-unused-variable -I/home/amiq/local/include
/**
* @file asdb.c
* @author Makoto Shimazu <makoto.shimaz@gmail.com>
* ... | amiq11/asdb-vtabwrapper | src/asdb.c | C | mit | 39,205 |
/*
* check_version.c - is part of tsubi.
* tsubi is a Tiny Simplistic UBjson I/O library for C.
* (C) 2014 Francesco Romani <fromani gmail>. MIT License.
*/
#include <stdlib.h>
#include <check.h>
#include "tsubi.h"
START_TEST(test_version)
{
uint32_t version = tsubi_version();
ck_assert(version);
}
END_TE... | mojaves/tsubi | tests/check_version.c | C | mit | 1,141 |
int x;
int main(){
int y;
x = 3;
y = 1;
return x + y;
} | DevManny/CompiladorFinal | mm.c | C | mit | 87 |
/*
* Copyright (c) 2012-2014 Travis Geiselbrecht
*
* 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, m... | M1cha/lk | platform/zynq/platform.c | C | mit | 12,770 |
/* fre.c */
#include <stdio.h>
int main()
{
int i, n, y[3] = {0,0,0};
float x;
char z[] = "*";
for (i = 0; i < 10; i++){
scanf("%f", &x);
y[(int)x]++;
}
printf("Interval | Frequency\n");
printf("---------+----------\n");
for (n = 0; n < 3; n++){
printf("[%d, %d) | ", n, n + 1);
f... | her0m31/Studys | SoftB/09/e9/fre.c | C | mit | 413 |
#define FUSE_USE_VERSION 26
#include <fuse.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <pthread.h>
#include <pwd.h>
#include <fcntl.h>
#include <signal.h>
#include <stdint.h>
#include <std... | flovilmart/cloudfuse | cloudfuse.c | C | mit | 12,470 |
#pragma once
/*
Copyright (c) 2014 Alex Diener
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.
Permission is granted to anyone to use this software for any purpose,
including ... | vbloodv/blood | source/research/input/gamepad/gamepad_windows_mm.c | C | mit | 12,806 |
/*
Copyright ©1995, Juri Munkki
All rights reserved.
File: CDoor2Actor.c
Created: Tuesday, November 21, 1995, 18:42
Modified: Thursday, November 23, 1995, 15:10
*/
#include "CDoor2Actor.h"
#include "CSmartPart.h"
void CDoor2Actor::PlaceParts()
{
Fixed r;
Fixed t[3];
Fixed stat = doorStatus;... | jmunkki/Avara | src/Avara/Game/CDoor2Actor.c | C | mit | 2,349 |
/*****************************************************************************
* FILENAME: Service_Glove.c *
* *
* DESCRIPTION: Glove Bluetooth Service implementation for sending data from *
* ... | bnordland/Gesture-V | Glove/BLE/Service/Service_Glove.c | C | mit | 15,876 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.