** !no objs!@Meta *** @Header ****** place:header ******** @Header /home/yyzhou/pad/software-os-src/freebsd/arm/xscale/i8134x/i81342_pci.c:1:0 !!/*- * Copyright (c) 2006 Olivier Houchard * All rights reserved. * * 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, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 DISCLAIMED. IN NO EVENT SHALL THE AUTHOR * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> __FBSDID("$FreeBSD: src/sys/arm/xscale/i8134x/i81342_pci.c,v 1.2 2007/09/30 11:05:14 marius Exp $"); #include <sys/param.h> ******** @Header /home/yyzhou/pad/software-os-src/freebsd/compat/opensolaris/sys/mutex.h:1:0 !!/*- * Copyright (c) 2007 Pawel Jakub Dawidek <pjd@FreeBSD.org> * All rights reserved. * * 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, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHORS 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 DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD: src/sys/compat/opensolaris/sys/mutex.h,v 1.4 2007/11/05 18:40:55 pjd Exp $ */ #ifndef _OPENSOLARIS_SYS_MUTEX_H_ #define _OPENSOLARIS_SYS_MUTEX_H_ #ifdef _KERNEL ******** @Header /home/yyzhou/pad/software-os-src/freebsd/fs/nwfs/nwfs_io.c:1:0 !!/*- * Copyright (c) 1999, Boris Popov * All rights reserved. * * 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, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by Boris Popov. * 4. Neither the name of the author nor the names of any co-contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD: src/sys/fs/nwfs/nwfs_io.c,v 1.46 2007/06/01 14:33:10 kib Exp $ * */ #include <sys/param.h> #include <sys/systm.h> #include <sys/resourcevar.h> /* defines plimit structure in proc struct */ #include <sys/kernel.h> #include <sys/bio.h> ******** @Header /home/yyzhou/pad/software-os-src/freebsd/i386/include/asmacros.h:1:0 !!/*- * Copyright (c) 1993 The Regents of the University of California. * All rights reserved. * * 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, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD: src/sys/i386/include/asmacros.h,v 1.30 2007/08/22 04:26:07 jkoshy Exp $ */ #ifndef _MACHINE_ASMACROS_H_ #define _MACHINE_ASMACROS_H_ #include <sys/cdefs.h> ******** @Header /home/yyzhou/pad/software-os-src/freebsd/ia64/disasm/disasm.h:1:0 !!/*- * Copyright (c) 2000-2006 Marcel Moolenaar * All rights reserved. * * 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, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/ia64/disasm/disasm.h,v 1.6 2007/10/16 02:49:40 marcel Exp $ */ #ifndef _DISASM_H_ #define _DISASM_H_ #ifndef _DISASM_INT_H_ ******** @Header /home/yyzhou/pad/software-os-src/linux/arch/sh/boards/renesas/r7780rp/psw.c:1:0 !!/* * arch/sh/boards/renesas/r7780rp/psw.c * * push switch support for RDBRP-1/RDBREVRP-1 debug boards. * * Copyright (C) 2006 Paul Mundt * * 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 details. */ #include <linux/io.h> #include <linux/init.h> #include <linux/interrupt.h> #include <linux/platform_device.h> #include <asm/mach/r7780rp.h> ******** @Header /home/yyzhou/pad/software-os-src/linux/drivers/char/mspec.c:1:0 !!/* * Copyright (C) 2001-2006 Silicon Graphics, Inc. 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 Free Software Foundation. */ /* * SN Platform Special Memory (mspec) Support * * This driver exports the SN special memory (mspec) facility to user ******** @Header /home/yyzhou/pad/software-os-src/linux/drivers/isdn/hardware/eicon/mntfunc.c:1:0 !!/* $Id: mntfunc.c,v 1.19.6.4 2005/01/31 12:22:20 armin Exp $ * * Driver for Eicon DIVA Server ISDN cards. * Maint module * * Copyright 2000-2003 by Armin Schindler (mac@melware.de) * Copyright 2000-2003 Cytronics & Melware (info@melware.de) * * This software may be used and distributed according to the terms * of the GNU General Public License, incorporated herein by reference. */ #include "platform.h" #include "di_defs.h" #include "divasync.h" ******** @Header /home/yyzhou/pad/software-os-src/linux/drivers/md/dm.h:1:0 !!/* * Internal header file for device mapper * * Copyright (C) 2001, 2002 Sistina Software * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. * * This file is released under the LGPL. */ #ifndef DM_INTERNAL_H #define DM_INTERNAL_H #include <linux/fs.h> ******** @Header /home/yyzhou/pad/software-os-src/linux/drivers/net/sk98lin/skvpd.c:1:0 !!/****************************************************************************** * * Name: skvpd.c * Project: GEnesis, PCI Gigabit Ethernet Adapter * Version: $Revision: 1.37 $ * Date: $Date: 2003/01/13 10:42:45 $ * Purpose: Shared software to read and write VPD data * ******************************************************************************/ /****************************************************************************** * * (C)Copyright 1998-2003 SysKonnect GmbH. * ******** @Header /home/yyzhou/pad/software-os-src/linux/fs/jfs/jfs_lock.h:1:0 !!/* * Copyright (C) International Business Machines Corp., 2000-2001 * Portions Copyright (C) Christoph Hellwig, 2001-2002 * * 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, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef _H_JFS_LOCK #define _H_JFS_LOCK #include <linux/spinlock.h> #include <linux/mutex.h> ******** @Header /home/yyzhou/pad/software-os-src/linux/include/asm-blackfin/nand.h:1:0 !!/* linux/include/asm-blackfin/nand.h * * Copyright (c) 2007 Analog Devices, Inc. * Bryan Wu <bryan.wu@analog.com> * * BF5XX - NAND flash controller platfrom_device info * * 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. */ /* struct bf5xx_nand_platform * * define a interface between platfrom board specific code and * bf54x NFC driver. ******** @Header /home/yyzhou/pad/software-os-src/linux/include/linux/prefetch.h:1:0 !!/* * Generic cache management functions. Everything is arch-specific, * but this header exists to make sure the defines/functions can be * used in a generic way. * * 2000-11-13 Arjan van de Ven <arjan@fenrus.demon.nl> * */ #ifndef _LINUX_PREFETCH_H #define _LINUX_PREFETCH_H #include <linux/types.h> ******** @Header /home/yyzhou/pad/software-os-src/linux/include/sound/trident.h:4:0 #ifndef __SOUND_TRIDENT_H #define __SOUND_TRIDENT_H !!/* * audio@tridentmicro.com * Fri Feb 19 15:55:28 MST 1999 * Definitions for Trident 4DWave DX/NX chips * * * 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, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #include "pcm.h" #include "mpu401.h" #include "ac97_codec.h" #include "util_mem.h" ******** @Header /home/yyzhou/pad/software-os-src/linux/net/tipc/core.h:1:0 !!/* * net/tipc/core.h: Include file for TIPC global declarations * * Copyright (c) 2005-2006, Ericsson AB * Copyright (c) 2005-2006, Wind River Systems * All rights reserved. * * 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, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the names of the copyright holders nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * 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 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _TIPC_CORE_H #define _TIPC_CORE_H #include <linux/tipc.h> ******** @Header /home/yyzhou/pad/software-os-src/linux/sound/core/oss/copy.c:1:0 !!/* * Linear conversion Plug-In * Copyright (c) 2000 by Abramo Bagnara <abramo@alsa-project.org> * * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Library 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 Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #include <linux/time.h> #include <sound/core.h> #include <sound/pcm.h> #include "pcm_plugin.h" ******** @Header @Log /home/yyzhou/pad/software-os-src/linux/sound/drivers/mtpav.c:1:0 !!/* * MOTU Midi Timepiece ALSA Main routines * Copyright by Michael T. Mayers (c) Jan 09, 2000 * mail: michael@tweakoz.com * Thanks to John Galbraith * * 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, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * * This driver is for the 'Mark Of The Unicorn' (MOTU) * MidiTimePiece AV multiport MIDI interface * * IOPORTS * ------- * 8 MIDI Ins and 8 MIDI outs * Video Sync In (BNC), Word Sync Out (BNC), * ADAT Sync Out (DB9) * SMPTE in/out (1/4") * 2 programmable pedal/footswitch inputs and 4 programmable MIDI controller knobs. * Macintosh RS422 serial port * RS422 "network" port for ganging multiple MTP's * PC Parallel Port ( which this driver currently uses ) * * MISC FEATURES * ------------- * Hardware MIDI routing, merging, and filtering * MIDI Synchronization to Video, ADAT, SMPTE and other Clock sources * 128 'scene' memories, recallable from MIDI program change * * * ChangeLog * Jun 11 2001 Takashi Iwai <tiwai@suse.de> * - Recoded & debugged * - Added timer interrupt for midi outputs * - hwports is between 1 and 8, which specifies the number of hardware ports. * The three global ports, computer, adat and broadcast ports, are created * always after h/w and remote ports. * */ #include <linux/init.h> #include <linux/interrupt.h> #include <linux/err.h> #include <linux/platform_device.h> ******** @Header /home/yyzhou/pad/software-os-src/opensolaris/common/ipp/dlcosmk/dlcosmkddi.c:1:0 !!/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at usr/src/OPENSOLARIS.LICENSE. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ ******** @Header /home/yyzhou/pad/software-os-src/opensolaris/intel/ia32/os/syscall.c:1:0 !!/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at usr/src/OPENSOLARIS.LICENSE. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ ******** @Header /home/yyzhou/pad/software-os-src/opensolaris/sun4v/io/n2rng/n2rng_entp_algs.c:1:0 !!/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at usr/src/OPENSOLARIS.LICENSE. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ ****** place:unknown ******** @Header /home/yyzhou/pad/software-os-src/opensolaris/common/pcmcia/pem/pem.c:22:0 * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ !!/* * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #pragma ident "%Z%%M% %I% %E% SMI" /* * pem - PCMCIA Event Manager ******** @Header /home/yyzhou/pad/software-os-src/opensolaris/intel/sys/machsig.h:27:0 /* * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ !!/* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ #ifndef _SYS_MACHSIG_H #define _SYS_MACHSIG_H *** @Author ****** place:unknown ******** @Author /home/yyzhou/pad/software-os-src/linux/drivers/usb/storage/unusual_devs.h:1567:0 "MPIO", "HS200", US_SC_DEVICE, US_PR_DEVICE, NULL, US_FL_GO_SLOW ), !!/* * David Härdeman <david@2gen.com> * The key makes the SCSI stack print confusing (but harmless) messages */ UNUSUAL_DEV( 0x4146, 0xba01, 0x0100, 0x0100, "Iomega", "Micro Mini 1GB", US_SC_DEVICE, US_PR_DEVICE, NULL, US_FL_NOT_LOCKABLE ), *** !no objs!@Copyright *** !no objs!@Date *** @Version ****** place:header ******** @Version /home/yyzhou/pad/software-os-src/linux/drivers/sbus/char/bbc_i2c.h:1:0 !!/* $Id: bbc_i2c.h,v 1.2 2001/04/02 09:59:25 davem Exp $ */ #ifndef _BBC_I2C_H #define _BBC_I2C_H #include <asm/ebus.h> ** !no objs!@PastFuture *** @Todo ****** place:assign ******** @Todo /home/yyzhou/pad/software-os-src/linux/arch/h8300/kernel/ptrace.c:84:21 ret = -EIO; break ; } ret = 0; /* Default return condition */ !! addr = addr >> 2; /* temporary hack. */ if (addr < H8300_REGS_NO) tmp = h8300_get_reg(child, addr); else { switch(addr) { ****** place:assignfield ******** @Todo /home/yyzhou/pad/software-os-src/freebsd/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c:2751:41 rpn->line_settings = RFCOMM_MKRPN_LINE_SETTINGS(data_bits, stop_bits, parity); rpn->flow_control = flow_control; rpn->xon_char = xon_char; rpn->xoff_char = xoff_char; !! rpn->param_mask = htole16(param_mask); /* XXX */ m0->m_pkthdr.len = m0->m_len = sizeof(*hdr) + sizeof(*rpn); hdr->type = RFCOMM_MKMCC_TYPE(0, RFCOMM_MCC_RPN); error = ng_btsocket_rfcomm_send_uih(s, ****** place:field ******** @Todo @MaybeComment /home/yyzhou/pad/software-os-src/freebsd/netinet/sctp_structs.h:726:1 uint32_t last_acked_seq; /* The next TSN that I will use in sending. */ uint32_t sending_seq; !! /* Original seq number I used ??questionable to keep?? */ uint32_t init_seq_number; /* The Advanced Peer Ack Point, as required by the PR-SCTP */ /* (A1 in Section 4.2) */ ******** @Todo @DataFlow @Sexy /home/yyzhou/pad/software-os-src/freebsd/sys/user.h:195:1 int ki_jid; /* Process jail ID */ int ki_numthreads; /* XXXKSE number of threads in total */ lwpid_t ki_tid; /* XXXKSE thread id */ struct priority ki_pri; /* process priority */ struct rusage ki_rusage; /* process rusage statistics */ !! /* XXX - most fields in ki_rusage_ch are not (yet) filled in */ struct rusage ki_rusage_ch; /* rusage of children processes */ struct pcb *ki_pcb; /* kernel virtual addr of pcb */ void *ki_kstack; /* kernel virtual addr of stack */ void *ki_udata; /* User convenience pointer */ /* ****** place:funcall ******** @Todo /home/yyzhou/pad/software-os-src/freebsd/dev/bktr/bktr_core.c:3977:1 } static void remote_read(bktr_ptr_t bktr, struct bktr_remote *remote) { int read; !! /* XXX errors ignored */ iicbus_start(IICBUS(bktr), bktr->remote_control_addr, 0 /* no timeout? */); iicbus_read(IICBUS(bktr), remote->data, 3, &read, IIC_LAST_READ, 0); iicbus_stop(IICBUS(bktr)); return; ******** @Todo /home/yyzhou/pad/software-os-src/freebsd/netinet/tcp_subr.c:2050:3 break; } if (inp != NULL) { INP_LOCK(inp); if (inp->inp_vflag & INP_TIMEWAIT) { !! /* * XXXRW: There currently exists a state where an * inpcb is present, but its timewait state has been * discarded. For now, don't allow dropping of this * type of inpcb. */ tw = intotw(inp); if (tw != NULL) tcp_twclose(tw, 0); else INP_UNLOCK(inp); ******** @Todo /home/yyzhou/pad/software-os-src/opensolaris/common/fs/zfs/dmu.c:711:1 dprintf("dmu_sync txg=%llu, s,o,q %llu %llu %llu\n", txg, tx->tx_synced_txg, tx->tx_open_txg, tx->tx_quiesced_txg); !! /* * XXX - would be nice if we could do this without suspending... */ txg_suspend(dp); /* * If this txg already synced, there's nothing to do. */ ****** place:function ******** @Todo /home/yyzhou/pad/software-os-src/freebsd/netinet6/in6.c:787:0 } return (0); } !!/* * Update parameters of an IPv6 interface address. * If necessary, a new entry is created and linked into address chains. * This function is separated from in6_control(). * XXX: should this be performed under splnet()? */ int in6_update_ifa(struct ifnet *ifp, struct in6_aliasreq *ifra, struct in6_ifaddr *ia, int flags) { int error = 0, hostIsNew = 0, plen = -1; ****** place:function_misc ******** @Todo /home/yyzhou/pad/software-os-src/freebsd/dev/gem/if_gem.c:763:30 /* NOTE: we use only 32-bit DMA addresses here. */ bus_write_4(sc->sc_res[0], GEM_RX_RING_PTR_HI, 0); bus_write_4(sc->sc_res[0], GEM_RX_RING_PTR_LO, GEM_CDRXADDR(sc, 0)); bus_write_4(sc->sc_res[0], GEM_RX_KICK, GEM_NRXDESC - 4); bus_write_4(sc->sc_res[0], GEM_RX_CONFIG, !! gem_ringsize(GEM_NRXDESC /* XXX */) | ((ETHER_HDR_LEN + sizeof(struct ip)) << GEM_RX_CONFIG_CXM_START_SHFT) | (GEM_THRSH_1024 << GEM_RX_CONFIG_FIFO_THRS_SHIFT) | (2 << GEM_RX_CONFIG_FBOFF_SHFT)); bus_write_4(sc->sc_res[0], GEM_RX_BLANKING, ******** @Todo @MaybeComment /home/yyzhou/pad/software-os-src/linux/drivers/block/ataflop.c:1560:10 printk (KERN_INFO "floppy%d: setting size %d spt %d str %d!\n", drive, setprm.size, setprm.sect, setprm.stretch); /* what if type > 0 here? Overwrite specified entry ? */ if (type) { !! /* refuse to re-set a predefined type for now */ redo_fd_request(); return -EINVAL; } /* ******** @Todo /home/yyzhou/pad/software-os-src/linux/drivers/media/common/saa7146_vbi.c:247:26 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); buf->vb.width = llength; buf->vb.height = lines; buf->vb.size = size; !! buf->vb.field = field; // FIXME: check this saa7146_pgtable_free(dev->pci, &buf->pt[2]); saa7146_pgtable_alloc(dev->pci, &buf->pt[2]); err = videobuf_iolock(q,&buf->vb, NULL); ******** @Todo /home/yyzhou/pad/software-os-src/linux/net/ipv4/ipvs/ip_vs_xmit.c:274:1 ip_hdr(skb)->daddr = cp->daddr; ip_send_check(ip_hdr(skb)); IP_VS_DBG_PKT(10, pp, skb, 0, "After DNAT"); !! /* FIXME: when application helper enlarges the packet and the length is larger than the MTU of outgoing device, there will be still MTU problem. */ /* Another hack: avoid icmp_send in ip_fragment */ skb->local_df = 1; IP_VS_XMIT(skb, rt); ******** @Todo /home/yyzhou/pad/software-os-src/opensolaris/common/io/scsi/targets/st.c:9678:0 * open. If opening, we only try just once to * reduce probe time for nonexistant devices. */ if ((un->un_laststate > ST_STATE_OPENING) && ((int)un->un_retry_ct < st_selection_retry_count)) { !!/* XXX check retriable? */ rval = QUE_COMMAND; } ST_DO_ERRSTATS(un, st_transerrs); break; ****** place:if ******** @Todo /home/yyzhou/pad/software-os-src/freebsd/boot/i386/libi386/biosdisk.c:685:4 */ if ((dptr->dp_typ == DOSPTYP_386BSD) && (dev->d_kind.biosdisk.partition < 0)) dev->d_kind.biosdisk.partition = 0; unsliced: !! /* * Now we have the slice offset, look for the partition in the disklabel if we have * a partition to start with. * * XXX we might want to check the label checksum. */ if (dev->d_kind.biosdisk.partition < 0) { od->od_boff = sector; /* no partition, must be after the slice */ DEBUG("opening raw slice"); } else { ******** @Todo /home/yyzhou/pad/software-os-src/freebsd/dev/ofw/ofw_console.c:124:1 error = 0; setuptimeout = 0; unit = minor(dev); !! /* * XXX: BAD, should happen at attach time */ if (dev->si_tty == NULL) { ofw_tp = ttyalloc(); dev->si_tty = ofw_tp; ofw_tp->t_dev = dev; } ******** @Todo /home/yyzhou/pad/software-os-src/freebsd/dev/usb/sl811hs.c:1001:2 if ((sc->sc_flags & SLF_RESET)) { sc->sc_flags &= ~SLF_RESET; sc->sc_change |= UPS_C_PORT_RESET; } splx(s); !! /* * XXX It can recognize that device is detached, * while there is sl11_speed() here. */ if (sc->sc_change) sl11_speed(sc); /* * status * o port is always enabled. ******** @Todo @MaybeComment /home/yyzhou/pad/software-os-src/freebsd/dev/wi/if_wi.c:2634:2 ic->ic_def_txkey); if (error) break; if (val & HOST_DECRYPT) break; !! /* * It seems that the firmware accept 104bit key only if * all the keys have 104bit length. We get the length of * the transmit key and use it for all other keys. * Perhaps we should use software WEP for such situation. */ if (ic->ic_def_txkey != IEEE80211_KEYIX_NONE) keylen = ic->ic_nw_keys[ic->ic_def_txkey].wk_keylen; else /* XXX should not hapen */ keylen = IEEE80211_WEP_KEYLEN; if (keylen > IEEE80211_WEP_KEYLEN) ******** @Todo @Author /home/yyzhou/pad/software-os-src/linux/net/netfilter/nf_conntrack_proto_tcp.c:776:1 /* Checksum invalid? Ignore. * We skip checking packets on the outgoing path * because the checksum is assumed to be correct. */ !! /* FIXME: Source route IP option packets --RR */ if (nf_conntrack_checksum && hooknum == NF_INET_PRE_ROUTING && nf_checksum(skb, hooknum, dataoff, IPPROTO_TCP, pf)) { if (LOG_INVALID(IPPROTO_TCP)) nf_log_packet(pf, 0, skb, NULL, NULL, NULL, "nf_ct_tcp: bad TCP checksum "); ******** @Todo /home/yyzhou/pad/software-os-src/opensolaris/intel/io/dktp/controller/ata/ata_disk.c:927:1 ata_drv_t *ata_drvp = GTGTP2ATADRVP(gtgtp); int rc; ADBG_TRACE(("ata_disk_reset entered\n")); !! /* XXX - Note that this interface is currently not used by dadk */ if (level == RESET_TARGET) { rc = ghd_tran_reset_target(&ata_drvp->ad_ctlp->ac_ccc, gtgtp, NULL); } else if (level == RESET_ALL) { ****** place:struct ******** @Todo @See /home/yyzhou/pad/software-os-src/opensolaris/common/fs/ufs/ufs_subr.c:85:0 #endif /* _KERNEL */ #ifdef _KERNEL !!/* * Used to verify that a given entry on the ufs_instances list (see below) * still refers to a mounted file system. * * XXX: This is a crock that substitutes for proper locking to coordinate * updates to and uses of the entries in ufs_instances. */ struct check_node { struct vfs *vfsp; struct ufsvfs *ufsvfs; dev_t vfs_dev; }; *** @Reminder ****** place:funcall ******** @Reminder /home/yyzhou/pad/software-os-src/opensolaris/common/fs/proc/prvnops.c:992:1 int error; user_t *up; ASSERT(pnp->pr_type == PR_SIGACT); !! /* * We kmem_alloc() the sigaction array because * it is so big it might blow the kernel stack. */ sap = kmem_alloc((NSIG-1) * sizeof (struct sigaction), KM_SLEEP); if ((error = prlock(pnp, ZNO)) != 0) goto out; p = pnp->pr_common->prc_proc; ****** place:function_misc ******** @Reminder /home/yyzhou/pad/software-os-src/opensolaris/common/c2/audit_event.c:3915:2 /* XXX - what about SOCK_RDM/SOCK_SEQPACKET ??? */ break; case AF_UNIX: !! /* * first check if this is first time through. Too much * duplicate code to put this in an aui_ routine. */ /* get path from file struct here */ fad = F2A(fp); ASSERT(fad); ****** place:include ******** @Reminder /home/yyzhou/pad/software-os-src/freebsd/pc98/include/apm_bios.h:31:0 */ #ifndef _PC98_INCLUDE_APM_BIOS_H_ #define _PC98_INCLUDE_APM_BIOS_H_ !!/* * PC98 machines implement APM bios in nearly the same was as i386 machines, * so include the i386 version and note the changes here. */ #include <i386/apm_bios.h> /* * APM BIOS and interrupt are different on pc98 */ ****** place:macro_function ******** @Reminder /home/yyzhou/pad/software-os-src/freebsd/dev/en/midwayreg.h:210:0 /* convert byte offset to reg value */ #define MID_DTQ_A2REG(N) (((N) - MID_DTQOFF) >> 3) /* and back */ #define MID_DTQ_REG2A(N) (((N) << 3) + MID_DTQOFF) !!/* note: format of word 1 of TXQ is different beween ENI and ADP cards */ #define MID_MK_TXQ_ENI(CNT, CHN, END, TYPE) \ (((CNT) << 16) | ((CHN) << 6) | (END) | (TYPE)) #define MID_MK_TXQ_ADP(CNT, CHN, END, JK) \ (((CNT) << 12) | ((CHN) << 2) | ((END) >> 4) | (((JK) != 0) ? 1 : 0)) **** @ReminderAbsence ****** place:variable ******** @ReminderAbsence /home/yyzhou/pad/software-os-src/linux/include/asm-mips/pgtable.h:175:0 #define PGD_T_LOG2 (__builtin_ffs(sizeof(pgd_t)) - 1) #define PMD_T_LOG2 (__builtin_ffs(sizeof(pmd_t)) - 1) #define PTE_T_LOG2 (__builtin_ffs(sizeof(pte_t)) - 1) !!/* * We used to declare this array with size but gcc 3.3 and older are not able * to find that this expression is a constant, so the size is dropped. */ extern pgd_t swapper_pg_dir[]; /* * The following only work if pte_present() is true. * Undefined behaviour if not.. *** @Log ****** place:unknown ******** @Log @MaybeComment @Space /home/yyzhou/pad/software-os-src/linux/mm/memory.c:12:0 /* * demand-loading started 01.12.91 - seems it is high on the list of * things wanted, and it should be easy to implement. - Linus */ !!/* * Ok, demand-loading was easy, shared pages a little bit tricker. Shared * pages started 02.12.91, seems to work. - Linus. * * Tested sharing by executing about 30 /bin/sh: under the old kernel it * would have taken more than the 6M I have free, but it worked well as * far as I could see. * * Also corrected some "invalidate()"s - I wasn't doing enough of them. */ /* * Real VM (paging to/from disk) started 18.12.91. Much more work and * thought has to go into this. Oh, well.. * 19.12.91 - works, somewhat. Sometimes I get faults, don't know why. *** @Trigger ****** place:function ******** @Trigger @Group @CondRelated /home/yyzhou/pad/software-os-src/linux/scripts/unifdef.c:611:0 debug("parser %s comment %s line", comment_name[incomment], linestate_name[linestate]); return (retval); } !!/* * These are the binary operators that are supported by the expression * evaluator. Note that if support for division is added then we also * need short-circuiting booleans because of divide-by-zero. */ static int op_lt(int a, int b) { return (a < b); } static int op_gt(int a, int b) { return (a > b); } static int op_le(int a, int b) { return (a <= b); } static int op_ge(int a, int b) { return (a >= b); } static int op_eq(int a, int b) { return (a == b); } ****** place:unknown ******** @Trigger @Sexy /home/yyzhou/pad/software-os-src/freebsd/dev/drm/radeon_drm.h:39:0 __FBSDID("$FreeBSD: src/sys/dev/drm/radeon_drm.h,v 1.14 2006/09/07 23:04:47 anholt Exp $"); #ifndef __RADEON_DRM_H__ #define __RADEON_DRM_H__ !!/* WARNING: If you change any of these defines, make sure to change the * defines in the X server file (radeon_sarea.h) */ #ifndef __RADEON_SAREA_DEFINES__ #define __RADEON_SAREA_DEFINES__ /* Old style state flags, required for sarea interface (1.1 and 1.2 * clears) and 1.2 drm_vertex2 ioctl. **** @Deprecated ****** place:case ******** @Deprecated /home/yyzhou/pad/software-os-src/freebsd/net/bpf.c:1038:1 /* This is deprecated, FIOSETOWN should be used instead. */ case TIOCSPGRP: error = fsetown(-(*(int *)addr), &d->bd_sigio); break; !! /* This is deprecated, FIOGETOWN should be used instead. */ case TIOCGPGRP: *(int *)addr = -fgetown(&d->bd_sigio); break; case BIOCSRSIG: /* Set receive signal */ ****** place:macro_variable ******** @Deprecated /home/yyzhou/pad/software-os-src/linux/include/asm-ia64/sn/sn_sal.h:141:36 /* * Error Handling Features */ #define SAL_ERR_FEAT_MCA_SLV_TO_OS_INIT_SLV 0x1 // obsolete !!#define SAL_ERR_FEAT_LOG_SBES 0x2 // obsolete #define SAL_ERR_FEAT_MFR_OVERRIDE 0x4 #define SAL_ERR_FEAT_SBE_THRESHOLD 0xffff0000 /* * SAL Error Codes *** @VersionRelated ****** place:function_misc ******** @VersionRelated /home/yyzhou/pad/software-os-src/linux/fs/ext2/inode.c:1334:0 ext2_get_inode_flags(ei); raw_inode->i_mode = cpu_to_le16(inode->i_mode); if (!(test_opt(sb, NO_UID32))) { raw_inode->i_uid_low = cpu_to_le16(low_16_bits(uid)); raw_inode->i_gid_low = cpu_to_le16(low_16_bits(gid)); !!/* * Fix up interoperability with old kernels. Otherwise, old inodes get * re-used with the upper 16 bits of the uid/gid intact */ if (!ei->i_dtime) { raw_inode->i_uid_high = cpu_to_le16(high_16_bits(uid)); raw_inode->i_gid_high = cpu_to_le16(high_16_bits(gid)); } else { raw_inode->i_uid_high = 0; ****** place:macro_variable ******** @VersionRelated /home/yyzhou/pad/software-os-src/freebsd/sys/fcntl.h:150:26 * The O_* flags used to have only F* names, which were used in the kernel * and by fcntl. We retain the F* names for the kernel f_flag field * and for backward compatibility for fcntl. These flags are deprecated. */ #if __BSD_VISIBLE !!#define FAPPEND O_APPEND /* kernel/compat */ #define FASYNC O_ASYNC /* kernel/compat */ #define FFSYNC O_FSYNC /* kernel */ #define FNONBLOCK O_NONBLOCK /* kernel */ #define FNDELAY O_NONBLOCK /* compat */ #define O_NDELAY O_NONBLOCK /* compat */ *** @OldCode ****** place:assignfield ******** @OldCode /home/yyzhou/pad/software-os-src/linux/net/ipv4/tcp_veno.c:188:1 tp->snd_cwnd = 2; else if (tp->snd_cwnd > tp->snd_cwnd_clamp) tp->snd_cwnd = tp->snd_cwnd_clamp; } /* Wipe the slate clean for the next rtt. */ !! /* veno->cntrtt = 0; */ veno->minrtt = 0x7fffffff; } /* Veno MD phase */ static u32 tcp_veno_ssthresh(struct sock *sk) ****** place:funcall ******** @OldCode /home/yyzhou/pad/software-os-src/freebsd/dev/sound/midi/mpu401.c:156:2 printf("mpu401_intr write: no output\n"); */ return 0; } i++; !! /* DELAY(100); */ s = STATUS(m); } if ((m->flags & M_TXEN) && (m->si)) { callout_reset(&m->timer, 1, mpu401_timeout, m); ****** place:function_misc ******** @OldCode /home/yyzhou/pad/software-os-src/freebsd/dev/tdfx/tdfx_pci.c:437:1 /**** OLD GET CONFIG ****/ /* struct tdfx_softc* tdfx_info; */ /* Get the configuration for our card XXX*/ !! /*tdfx_info = (struct tdfx_softc*)devclass_get_softc(tdfx_devclass, UNIT(minor(dev)));*/ /************************/ struct tdfx_softc* tdfx_info[2]; tdfx_info[0] = (struct tdfx_softc*)devclass_get_softc(tdfx_devclass, 0); ******** @OldCode /home/yyzhou/pad/software-os-src/linux/drivers/infiniband/hw/ipath/ipath_iba6110.c:1370:2 (unsigned long long) ipath_read_kreg64(dd, dd->ipath_kregs->kr_xgxsconfig)); /* force reset on */ val |= INFINIPATH_SERDC0_RESET_PLL !! /* | INFINIPATH_SERDC0_RESET_MASK */ ; ipath_write_kreg(dd, dd->ipath_kregs->kr_serdesconfig0, val); udelay(15); /* need pll reset set at least for a bit */ if (val & INFINIPATH_SERDC0_RESET_PLL) { ******** @OldCode /home/yyzhou/pad/software-os-src/opensolaris/common/io/ib/ibtl/ibtl_mem.c:529:11 IBTF_DPRINTF_L3(ibtl_mem, "ibt_map_mem_area(%p, %p, %d)", hca_hdl, va_attrs, paddr_list_len); status = IBTL_HCA2CIHCAOPS_P(hca_hdl)->ibc_map_mem_area( IBTL_HCA2CIHCA(hca_hdl), va_attrs, !! NULL, /* IBTL_HCA2MODI_P(hca_hdl)->mi_reserved */ paddr_list_len, paddr_list_p, num_paddr_p, paddr_bufsz_p, paddr_offset_p, ma_hdl_p); if (status == IBT_SUCCESS) { mutex_enter(&hca_hdl->ha_mutex); hca_hdl->ha_ma_cnt++; ****** place:if ******** @OldCode /home/yyzhou/pad/software-os-src/freebsd/dev/lmc/if_lmc.c:5250:25 ng_attach(softc_t *sc) { int error; /* If this node type is not known to Netgraph then register it. */ !! if (ng_type.refs == 0) /* or: if (ng_findtype(&ng_type) == NULL) */ { if ((error = ng_newtype(&ng_type))) { printf("%s: ng_newtype() failed; error %d\n", NAME_UNIT, error); return error; ******** @OldCode /home/yyzhou/pad/software-os-src/linux/mm/nommu.c:716:1 { unsigned long vm_flags; vm_flags = calc_vm_prot_bits(prot) | calc_vm_flag_bits(flags); vm_flags |= VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC; !! /* vm_flags |= mm->def_flags; */ if (!(capabilities & BDI_CAP_MAP_DIRECT)) { /* attempt to share read-only copies of mapped file chunks */ if (file && !(prot & PROT_WRITE)) vm_flags |= VM_MAYSHARE; ****** place:initalizer_misc ******** @OldCode /home/yyzhou/pad/software-os-src/linux/drivers/video/console/font_mini_4x6.c:1339:1 0xee, /*= [*** ] */ 0xee, /*= [*** ] */ 0xee, /*= [*** ] */ 0xee, /*= [*** ] */ 0x00, /*= [ ] */ !! /*}*/ /*{*/ /* Char 155: */ 0xee, /*= [*** ] */ 0xee, /*= [*** ] */ 0xee, /*= [*** ] */ 0xee, /*= [*** ] */ ****** place:unknown ******** @OldCode /home/yyzhou/pad/software-os-src/freebsd/dev/asr/i2omsg.h:683:0 #define I2O_SGL_FLAGS_ADDRESS_MODE_MASK 0x3C #define I2O_SGL_FLAGS_NO_CONTEXT 0x00 /* Scatter/Gather Truth Table */ !!/* typedef enum _SG_TYPE { INVALID, Ignore, TransportDetails, BitBucket, ImmediateData, Simple, PageList, ChainPointer, ShortTransaction, LongTransaction, SGLAttributes, INVALID/ReservedLongFormat, INVALID/ReservedShortFormat } SG_TYPE, *PSG_TYPE; 0x00 Ignore; 0x04 TransportDetails; 0x08 BitBucket; 0x0C ImmediateData; 0x10 Simple; 0x14 Simple; 0x18 Simple; 0x1C Simple; 0x20 PageList; 0x24 PageList; 0x28 PageList; 0x2C PageList; 0x30 ChainPointer; 0x34 INVALID; 0x38 ChainPointer; 0x3C INVALID; 0x40 LongTransaction; 0x44 INVALID/ReservedLongFormat; 0x48 BitBucket; 0x4C ImmediateData; 0x50 Simple; 0x54 Simple; 0x58 Simple; 0x5C Simple; 0x60 PageList; 0x64 PageList; 0x68 PageList; 0x6C PageList; 0x70 ShortTransaction; 0x74 INVALID/ReservedShortFormat; 0x78 INVALID/ReservedShortFormat; 0x7C SGLAttributes; */ /* 32 Bit Context Field defines */ #define I2O_SGL_FLAGS_CONTEXT32_NULL 0x00 ******** @OldCode /home/yyzhou/pad/software-os-src/linux/arch/ppc/8xx_io/enet.c:159:0 static struct net_device_stats *scc_enet_get_stats(struct net_device *dev); static void set_multicast_list(struct net_device *dev); /* Get this from various configuration locations (depends on board). */ !!/*static ushort my_enet_addr[] = { 0x0800, 0x3e26, 0x1559 };*/ /* Typically, 860(T) boards use SCC1 for Ethernet, and other 8xx boards * use SCC2. Some even may use SCC3. * This is easily extended if necessary. */ ****** place:variable ******** @OldCode /home/yyzhou/pad/software-os-src/linux/fs/isofs/compress.c:58:1 unsigned long bufmask = bufsize - 1; int err = -EIO; int i; unsigned int header_size = ISOFS_I(inode)->i_format_parm[0]; unsigned int zisofs_block_shift = ISOFS_I(inode)->i_format_parm[1]; !! /* unsigned long zisofs_block_size = 1UL << zisofs_block_shift; */ unsigned int zisofs_block_page_shift = zisofs_block_shift-PAGE_CACHE_SHIFT; unsigned long zisofs_block_pages = 1UL << zisofs_block_page_shift; unsigned long zisofs_block_page_mask = zisofs_block_pages-1; struct page *pages[zisofs_block_pages]; unsigned long index = page->index; ** !no objs!@Explanation *** @InformalSpec ****** place:function ******** @InformalSpec @Brief /home/yyzhou/pad/software-os-src/freebsd/fs/msdosfs/msdosfs_lookup.c:846:0 if (dep != NULL) vput(DETOV(dep)); return (error); } !!/* * Read in the disk block containing the directory entry (dirclu, dirofs) * and return the address of the buf header, and the address of the * directory entry within the block. */ int readep(pmp, dirclust, diroffset, bpp, epp) struct msdosfsmount *pmp; u_long dirclust, diroffset; struct buf **bpp; ******** @InformalSpec /home/yyzhou/pad/software-os-src/linux/net/sctp/protocol.c:91:0 int sysctl_sctp_mem[3]; int sysctl_sctp_rmem[3]; int sysctl_sctp_wmem[3]; !!/* Return the address of the control sock. */ struct sock *sctp_get_ctl_sock(void) { return sctp_ctl_socket->sk; } ****** place:macro_function ******** @InformalSpec /home/yyzhou/pad/software-os-src/linux/fs/jfs/jfs_dmap.h:280:0 #define BLKSTOL2(d) (blkstol2(d)) /* convert number of leafs to log2 leaf value */ #define NLSTOL2BSZ(n) (31 - cntlz((n)) + BUDMIN) !!/* convert leaf index to log2 leaf value */ #define LITOL2BSZ(n,m,b) ((((n) == 0) ? (m) : cnttz((n))) + (b)) /* convert a block number to a dmap control leaf index */ #define BLKTOCTLLEAF(b,m) \ (((b) & (((s64)1 << ((m) + L2LPERCTL)) - 1)) >> (m)) ****** place:unknown ******** @InformalSpec /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_dir2_data.c:172:0 ASSERT(stale == be32_to_cpu(btp->stale)); } } #endif !!/* * Given a data block and an unused entry from that block, * return the bestfree entry if any that corresponds to it. */ xfs_dir2_data_free_t * xfs_dir2_data_freefind( xfs_dir2_data_t *d, /* data block */ xfs_dir2_data_unused_t *dup) /* data unused entry */ { *** @Brief ****** place:assign ******** @Brief @AbuseInt /home/yyzhou/pad/software-os-src/freebsd/dev/usb/hid.c:160:3 bTag = *p++; data = p; p += bSize; bType = 0xff; /* XXX what should it be */ } else { !! /* short item */ bTag = bSize >> 4; bType = (bSize >> 2) & 3; bSize &= 3; if (bSize == 3) bSize = 4; data = p; ******** @Brief /home/yyzhou/pad/software-os-src/linux/net/ipv4/inet_timewait_sock.c:34:1 } __hlist_del(&tw->tw_node); sk_node_init(&tw->tw_node); write_unlock(lock); !! /* Disassociate with bind bucket. */ bhead = &hashinfo->bhash[inet_bhashfn(tw->tw_num, hashinfo->bhash_size)]; spin_lock(&bhead->lock); tb = tw->tw_tb; __hlist_del(&tw->tw_bind_node); tw->tw_tb = NULL; ******** @Brief /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip/icmp.c:4757:1 * explicitly set in options_exists. */ option_exists |= IPPF_SCOPE_ID; } !! /* * Compute the destination address */ ip6_dst = sin6->sin6_addr; if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) ip6_dst = ipv6_loopback; /* ******** @Brief /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip/ip.c:12220:2 if (proto == IPPROTO_UDP && dohwcksum && ILL_HCKSUM_CAPABLE(ill) && (DB_CKSUMFLAGS(mp) & (HCK_FULLCKSUM | HCK_PARTIALCKSUM))) { mblk_t *mp1 = mp->b_cont; int32_t len; !! /* Record checksum information from the packet */ sum_val = (uint32_t)DB_CKSUM16(mp); sum_flags = DB_CKSUMFLAGS(mp); /* IP payload offset from beginning of mblk */ offset = ((uchar_t *)ipha + IPH_HDR_LENGTH(ipha)) - mp->b_rptr; ****** place:assignfield ******** @Brief /home/yyzhou/pad/software-os-src/freebsd/dev/lmc/if_lmc.c:6174:2 obsd_detach(self, 0); return; } intrstr = pci_intr_string(pa->pa_pc, sc->intr_handle); !! /* Install a shutdown hook. */ sc->sdh_cookie = shutdownhook_establish(shutdown_card, sc); if (sc->sdh_cookie == NULL) { printf("%s: shutdown_hook_establish() failed\n", NAME_UNIT); obsd_detach(self, 0); ******** @Brief /home/yyzhou/pad/software-os-src/freebsd/dev/patm/if_patm_attach.c:766:1 patm_sq_init(struct patm_softc *sc) { int error; void *p; !! /* compute size of the two queues */ sc->sq_size = IDT_TSQ_SIZE * IDT_TSQE_SIZE + PATM_RSQ_SIZE * IDT_RSQE_SIZE + IDT_RAWHND_SIZE; patm_debug(sc, ATTACH, ******** @Brief /home/yyzhou/pad/software-os-src/opensolaris/intel/io/dktp/controller/ata/ata_dma.c:295:1 /* store the phys addr and count from the cookie */ dmap->p_address = (uint_t)dmackp->dmac_address; dmap->p_count = (uint_t)dmackp->dmac_size; !! /* save the count of scatter/gather segments */ ata_pktp->ap_sg_cnt = seg_index + 1; /* compute the total bytes in this request */ if (seg_index == 0) ata_pktp->ap_bcount = 0; ******** @Brief /home/yyzhou/pad/software-os-src/opensolaris/sun4u/lw8/io/sgenv.c:710:2 ksp->ks_update = sgenv_board_info_kstat_update; ksp->ks_snapshot = sgenv_board_info_kstat_snapshot; ksp->ks_lock = &board_kstat_lock; kstat_install(ksp); !! /* update the soft state */ softsp->board_info_ksp = ksp; } else { cmn_err(CE_WARN, "Board Status Info: kstat_create failed"); return (-1); ****** place:case ******** @Brief @OsSpecific /home/yyzhou/pad/software-os-src/linux/drivers/net/yellowfin.c:1345:20 struct yellowfin_private *np = netdev_priv(dev); void __iomem *ioaddr = np->base; struct mii_ioctl_data *data = if_mii(rq); switch(cmd) { !! case SIOCGMIIPHY: /* Get address of MII PHY in use. */ data->phy_id = np->phys[0] & 0x1f; /* Fall Through */ case SIOCGMIIREG: /* Read MII PHY register. */ data->val_out = mdio_read(ioaddr, data->phy_id & 0x1f, data->reg_num & 0x1f); ****** place:enum_value ******** @Brief /home/yyzhou/pad/software-os-src/linux/drivers/net/netxen/netxen_nic.h:690:30 NETXEN_BRDCFG_START = 0x4000, /* board config */ NETXEN_INITCODE_START = 0x6000, /* pegtune code */ NETXEN_BOOTLD_START = 0x10000, /* bootld */ NETXEN_IMAGE_START = 0x43000, /* compressed image */ NETXEN_SECONDARY_START = 0x200000, /* backup images */ !! NETXEN_PXE_START = 0x3E0000, /* user defined region */ NETXEN_USER_START = 0x3E8000, /* User defined region for new boards */ NETXEN_FIXED_START = 0x3F0000 /* backup of crbinit */ } netxen_flash_map_t; #define NETXEN_USER_START_OLD NETXEN_PXE_START /* for backward compatibility */ ****** place:field ******** @Brief /home/yyzhou/pad/software-os-src/linux/drivers/net/sk98lin/h/skgeinit.h:402:27 int GIWolOffs; /* WOL Register Offset (HW-Bug in Rev. A) */ SK_U32 GIRamOffs; /* RAM Address Offset for addr calculation */ SK_U32 GIPollTimerVal; /* Descr. Poll Timer Init Val (HstClk ticks) */ SK_U32 GIValIrqMask; /* Value for Interrupt Mask */ SK_U32 GITimeStampCnt; /* Time Stamp High Counter (YUKON only) */ !! SK_GEPORT GP[SK_MAX_MACS];/* Port Dependent Information */ SK_GEMACFUNC GIFunc; /* MAC depedent functions */ } SK_GEINIT; /* * Error numbers and messages for skxmac2.c and skgeinit.c ****** place:funcall ******** @Brief @OsRegister /home/yyzhou/pad/software-os-src/freebsd/dev/usb/if_rum.c:2037:1 #ifdef RUM_DEBUG for (i = 0; i < 14; i++) DPRINTF(("Channel=%d Tx power=%d\n", i + 1, sc->txpow[i])); #endif !! /* read default values for BBP registers */ rum_eeprom_read(sc, RT2573_EEPROM_BBP_BASE, sc->bbp_prom, 2 * 16); #ifdef RUM_DEBUG for (i = 0; i < 14; i++) { if (sc->bbp_prom[i].reg == 0 || sc->bbp_prom[i].reg == 0xff) continue; ******** @Brief /home/yyzhou/pad/software-os-src/freebsd/netatm/uni/sscop_subr.c:585:3 if (n == NULL) { err = 1; break; } !! /* * Now pass it down the stack */ STACK_CALL(CPCS_UNITDATA_INV, sop->so_lower, sop->so_tokl, sop->so_connvc, (intptr_t)n, 0, err); if (err) { KB_FREEALL(n); ******** @Brief @StupidComment /home/yyzhou/pad/software-os-src/linux/drivers/net/tg3.c:4164:3 */ if (unlikely(tg3_tx_avail(tp) <= (skb_shinfo(skb)->nr_frags + 1))) { if (!netif_queue_stopped(dev)) { netif_stop_queue(dev); !! /* This is a hard error, log it. */ printk(KERN_ERR PFX "%s: BUG! Tx Ring full when " "queue awake!\n", dev->name); } return NETDEV_TX_BUSY; } ******** @Brief /home/yyzhou/pad/software-os-src/linux/kernel/signal.c:1671:1 info.si_signo = SIGTRAP; info.si_code = exit_code; info.si_pid = task_pid_vnr(current); info.si_uid = current->uid; !! /* Let the debugger run. */ spin_lock_irq(¤t->sighand->siglock); ptrace_stop(exit_code, 1, &info); spin_unlock_irq(¤t->sighand->siglock); } ******** @Brief /home/yyzhou/pad/software-os-src/opensolaris/common/io/sfe/sfe_util.c:1054:1 #endif for (sn = head; sn != tail; sn++, tbp = tbp->txb_next) { gem_txbuf_free_dma_resources(tbp); } !! /* recycle the tx buffers */ mutex_enter(&dp->xmitlock); if (--dp->tx_reclaim_busy == 0) { /* we are the last thread who can update free tail */ #if GEM_DEBUG_LEVEL > 4 /* check all resouces have been deallocated */ ******** @Brief /home/yyzhou/pad/software-os-src/opensolaris/sun4u/starcat/io/schpc.c:1470:3 case HPC_CTRL_DEV_UNCONFIGURED: SCHPC_DEBUG0(D_IOC_CONTROL, "schpc_cpci_control() - " "HPC_CTRL_DEV_UNCONFIGURED"); if (schpc_p->schpc_slot[slot].state & SCHPC_SLOTSTATE_ENUM) { !! /* * When the occupant is unconfigured, power * down the slot. */ rval = schpc_disconnect((caddr_t)schpc_p, schpc_p->schpc_slot[slot].slot_handle, 0, 0); schpc_p->schpc_slot[slot].state &= ****** place:function ******** @Brief @OsInterrupt /home/yyzhou/pad/software-os-src/freebsd/arm/xscale/i80321/i80321_timer.c:458:0 delta %= COUNTS_PER_USEC; } } } !!/* * clockhandler: * * Handle the hardclock interrupt. */ int clockhandler(void *arg) { struct trapframe *frame = arg; ******** @Brief @OsInterrupt /home/yyzhou/pad/software-os-src/freebsd/dev/utopia/suni.c:299:0 SUNI_REGO_RACPCNT, 3, 0x7ffff); utp->stats.tx_cells += utopia_update(utp, SUNI_REGO_TACPCNT, 3, 0x7ffff); } !!/* * Handle interrupt on SUNI chip */ static void suni_intr_default(struct utopia *utp) { uint8_t regs[SUNI_REGO_MTEST]; u_int n = SUNI_REGO_MTEST; ******** @Brief /home/yyzhou/pad/software-os-src/freebsd/kern/kern_exit.c:91:0 MALLOC_DEFINE(M_ZOMBIE, "zombie", "zombie proc status"); /* Hook for NFS teardown procedure. */ void (*nlminfo_release_p)(struct proc *p); !!/* * exit -- death of process. */ void sys_exit(struct thread *td, struct sys_exit_args *uap) { exit1(td, W_EXITCODE(uap->rval, 0)); ******** @Brief /home/yyzhou/pad/software-os-src/linux/net/ipv4/netfilter/nf_nat_snmp_basic.c:1186:0 * * NAT routines. * *****************************************************************************/ !!/* * SNMP translation routine. */ static int snmp_translate(struct nf_conn *ct, enum ip_conntrack_info ctinfo, struct sk_buff *skb) { struct iphdr *iph = ip_hdr(skb); ******** @Brief /home/yyzhou/pad/software-os-src/linux/net/tipc/name_distr.c:164:0 publ_to_item(item, publ); dbg("tipc_named_withdraw: broadcasting withdraw msg\n"); tipc_cltr_broadcast(buf); } !!/** * tipc_named_node_up - tell specified node about all publications by this node */ void tipc_named_node_up(unsigned long node) { struct publication *publ; struct distr_item *item = NULL; ******** @Brief @OsSignal /home/yyzhou/pad/software-os-src/opensolaris/common/os/sig.c:109:0 static kcondvar_t utstop_cv; static kmutex_t thread_stop_lock; void del_one_utstop(void); !!/* * Send the specified signal to the specified process. */ void psignal(proc_t *p, int sig) { mutex_enter(&p->p_lock); sigtoproc(p, NULL, sig); ******** @Brief @StupidComment /home/yyzhou/pad/software-os-src/opensolaris/intel/io/dktp/controller/ata/ata_disk.c:2970:0 ata_pktp->ap_flags |= AP_ERROR; return (ATA_FSM_RC_FINI); } !!/* * unlock the drive * */ static int ata_disk_unlock( ata_ctl_t *ata_ctlp, ata_drv_t *ata_drvp, ata_pkt_t *ata_pktp) ******** @Brief @OsRegister /home/yyzhou/pad/software-os-src/opensolaris/sun4/io/px/px_util.c:635:0 px_p); return (((uint64_t)rangep->parent_high << 32) | rangep->parent_low); } !!/* * decodes standard PCI config space 16bit error status reg */ int px_log_cfg_err(dev_info_t *dip, ushort_t status_reg, char *err_msg) { int nerr = ddi_get_instance(dip); /* temp for instance */ uint64_t perr_fatal = px_perr_fatal & (1 << nerr); ****** place:function_misc ******** @Brief @OsSpecific /home/yyzhou/pad/software-os-src/freebsd/i386/isa/isa_dma.c:257:2 } else { dma_auto_mode &= ~(1 << chan); } if ((chan & 4) == 0) { !! /* * Program one of DMA channels 0..3. These are * byte mode channels. */ /* set dma channel mode, and reset address ff */ /* If ISADMA_RAW flag is set, then use autoinitialise mode */ if (flags & ISADMA_RAW) { if (flags & ISADMA_READ) ******** @Brief /home/yyzhou/pad/software-os-src/linux/fs/gfs2/daemon.c:98:2 struct gfs2_sbd *sdp = data; unsigned long t; int error; while (!kthread_should_stop()) { !! /* Update the master statfs file */ t = sdp->sd_statfs_sync_time + gfs2_tune_get(sdp, gt_statfs_quantum) * HZ; if (time_after_eq(jiffies, t)) { ******** @Brief /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip/sadb.c:6307:1 } if (alg == NULL || !ALG_VALID(alg)) return (EINVAL); !! /* initialize the mech info structure for the framework */ ASSERT(alg->alg_mech_type != CRYPTO_MECHANISM_INVALID); mech.cm_type = alg->alg_mech_type; mech.cm_param = NULL; mech.cm_param_len = 0; ******** @Brief /home/yyzhou/pad/software-os-src/opensolaris/common/io/cardbus/cardbus_cfg.c:3935:1 (void) sprintf(buffer, "pci%x,%x", subvenid, subsysid); compat[n] = kmem_alloc(strlen(buffer) + 1, KM_SLEEP); (void) strcpy(compat[n++], buffer); } !! /* * Add in the VendorID/DeviceID compatible name. */ (void) sprintf(buffer, "pci%x,%x", venid, devid); compat[n] = kmem_alloc(strlen(buffer) + 1, KM_SLEEP); (void) strcpy(compat[n++], buffer); ******** @Brief /home/yyzhou/pad/software-os-src/opensolaris/intel/io/acpica/disassembler/dmopcode.c:205:4 ACPI_PARSE_OBJECT *Op) { UINT32 Flags; !! /* The next peer Op (not child op) contains the flags */ Op = Op->Common.Next; Flags = (UINT8) Op->Common.Value.Integer; /* Mark the Op as completed */ ****** place:if ******** @Brief /home/yyzhou/pad/software-os-src/freebsd/dev/amr/amr_cam.c:408:1 /* * Build a passthrough command. */ !! /* construct command */ if ((ac = amr_alloccmd(sc)) == NULL) { error = ENOMEM; goto out; } ******** @Brief @CondRelated /home/yyzhou/pad/software-os-src/freebsd/i4b/driver/i4b_tel.c:591:4 error = uiomove(m->m_data, m->m_len, uio); for(i = 0; i < m->m_len; i++) { !! /* convert if necessary */ if(sc->wcvttab) mtod(m,u_char *)[i] = sc->wcvttab[mtod(m,u_char *)[i]]; /* always reverse bitorder to line */ mtod(m,u_char *)[i] = bitreverse[mtod(m,u_char *)[i]]; ******** @Brief @CondRelated /home/yyzhou/pad/software-os-src/freebsd/net/if_sl.c:641:2 sc->sc_flags &= ~SC_OUTWAIT; if (tp->t_outq.c_cc > SLIP_HIWAT) return 0; } !! /* * This happens briefly when the line shuts down. */ if (sc == NULL) return 0; /* * Get a packet and send it to the interface. ******** @Brief @StupidComment /home/yyzhou/pad/software-os-src/freebsd/security/mac_lomac/mac_lomac.c:1521:2 * must be in the subject range. */ if (!lomac_single_in_range(new, subj)) return (EPERM); !! /* * To change the LOMAC label on a pipe to be EQUAL, the * subject must have appropriate privilege. */ if (lomac_contains_equal(new)) { error = lomac_subject_privileged(subj); if (error) return (error); } ******** @Brief /home/yyzhou/pad/software-os-src/linux/drivers/scsi/tmscsim.c:1218:1 /* Msg complete ? */ if (dc390_MsgIn_complete (pSRB->MsgInBuf, pACB->MsgLen)) { DEBUG0 (printk (KERN_INFO "DC390: MsgIn:"); dc390_printMsg (pSRB->MsgInBuf, pACB->MsgLen)); !! /* Now eval the msg */ switch (pSRB->MsgInBuf[0]) { case DISCONNECT: pSRB->SRBState = SRB_DISCONNECT; break; ******** @Brief /home/yyzhou/pad/software-os-src/linux/drivers/usb/gadget/fsl_usb2_udc.c:1712:1 struct fsl_udc *udc = _udc; u32 irq_src; irqreturn_t status = IRQ_NONE; unsigned long flags; !! /* Disable ISR for OTG host mode */ if (udc->stopped) return IRQ_NONE; spin_lock_irqsave(&udc->lock, flags); irq_src = fsl_readl(&dr_regs->usbsts) & fsl_readl(&dr_regs->usbintr); /* Clear notification bits */ ******** @Brief /home/yyzhou/pad/software-os-src/linux/fs/xfs/xfs_alloc_btree.c:1205:1 */ if (cur->bc_ptrs[level] <= 1) { *stat = 0; return 0; } !! /* * Set up the left neighbor as "left". */ if ((error = xfs_btree_read_bufs(cur->bc_mp, cur->bc_tp, cur->bc_private.a.agno, be32_to_cpu(right->bb_leftsib), 0, &lbp, XFS_ALLOC_BTREE_REF))) return error; left = XFS_BUF_TO_ALLOC_BLOCK(lbp); ******** @Brief @CondRelated /home/yyzhou/pad/software-os-src/linux/net/ipv4/tcp_output.c:159:1 (!tp->packets_out && (s32)(now - tp->lsndtime) > icsk->icsk_rto)) tcp_cwnd_restart(sk, __sk_dst_get(sk)); tp->lsndtime = now; !! /* If it is a reply for ato after last received * packet, enter pingpong mode. */ if ((u32)(now - icsk->icsk_ack.lrcvtime) < icsk->icsk_ack.ato) icsk->icsk_ack.pingpong = 1; } static inline void tcp_event_ack_sent(struct sock *sk, unsigned int pkts) ******** @Brief /home/yyzhou/pad/software-os-src/opensolaris/common/brand/lx/procfs/lx_prvnops.c:2067:2 * but keep fd files with the symlink permissions */ if (lxpnp->lxpr_realvp != NULL && (flags & ATTR_REAL)) { vnode_t *rvp = lxpnp->lxpr_realvp; !! /* * withold attribute information to owner or root */ if ((error = VOP_ACCESS(rvp, 0, 0, cr, ct)) != 0) { return (error); } /* ******** @Brief @StupidComment /home/yyzhou/pad/software-os-src/opensolaris/common/io/aggr/aggr_lacp.c:379:1 /* current timestamp */ portp->lp_lacp.time = gethrtime(); portp->lp_lacp.NTT = B_TRUE; lacp_xmit_sm(portp); !! /* * Set Periodic State machine state based on the * value of the Partner Operation Port State timeout * bit. */ if (portp->lp_lacp.PartnerOperPortState.bit.timeout) { portp->lp_lacp.periodic_timer.val = FAST_PERIODIC_TIME; portp->lp_lacp.sm.periodic_state = LACP_FAST_PERIODIC; } else { portp->lp_lacp.periodic_timer.val = SLOW_PERIODIC_TIME; ******** @Brief /home/yyzhou/pad/software-os-src/opensolaris/sun/io/scsi/adapters/fas.c:3188:1 if (sp->cmd_pkt_flags & FLAG_RENEGOTIATE_WIDE_SYNC) { fas_force_renegotiation(fas, Tgt(sp)); } !! /* * first send identify message, with or without disconnect priv. */ if (sp->cmd_pkt_flags & FLAG_NODISCON) { LOAD_CMDP = fas->f_last_msgout = MSG_IDENTIFY | lun; ASSERT((sp->cmd_pkt_flags & FLAG_TAGMASK) == 0); } else { LOAD_CMDP = fas->f_last_msgout = MSG_DR_IDENTIFY | lun; ****** place:macro_function ******** @Brief /home/yyzhou/pad/software-os-src/freebsd/sys/soundcard.h:1391:0 *(u_int *)&_seqbuf[_seqbufptr+4] = (parm); \ _SEQ_ADVBUF(8); \ } #define SEQ_PLAYAUDIO(devmask) _LOCAL_EVENT(LOCL_STARTAUDIO, devmask) !!/* * Events for the level 1 interface only */ #define SEQ_MIDIOUT(device, byte) { \ _SEQ_NEEDBUF(4);\ _seqbuf[_seqbufptr] = SEQ_MIDIPUTC;\ _seqbuf[_seqbufptr+1] = (byte);\ ******** @Brief @CondRelated /home/yyzhou/pad/software-os-src/linux/include/asm-s390/uaccess.h:108:0 { size = uaccess.copy_from_user_small(size, ptr, x); return size ? -EFAULT : size; } !!/* * These are the main single-value transfer routines. They automatically * use the right size if we just have the right pointer type. */ #define __put_user(x, ptr) \ ({ \ __typeof__(*(ptr)) __x = (x); \ int __pu_err = -EFAULT; \ __chk_user_ptr(ptr); \ ****** place:struct ******** @Brief /home/yyzhou/pad/software-os-src/freebsd/fs/pseudofs/pseudofs_internal.h:39:0 /* * Sysctl subtree */ SYSCTL_DECL(_vfs_pfs); !!/* * Vnode data */ struct pfs_vdata { struct pfs_node *pvd_pn; pid_t pvd_pid; struct vnode *pvd_vnode; struct pfs_vdata*pvd_prev, *pvd_next; ****** place:unknown ******** @Brief /home/yyzhou/pad/software-os-src/freebsd/dev/hwpmc/hwpmc_mod.c:149:0 */ static u_long pmc_ownerhashmask; static LIST_HEAD(pmc_ownerhash, pmc_owner) *pmc_ownerhash; !!/* * List of PMC owners with system-wide sampling PMCs. */ static LIST_HEAD(, pmc_owner) pmc_ss_owners; /* ******** @Brief /home/yyzhou/pad/software-os-src/opensolaris/intel/io/acpica/interpreter/executer/exmisc.c:179:12 { case AML_LOCAL_OP: case AML_ARG_OP: case AML_DEBUG_OP: !! /* The referenced object is the pseudo-node for the local/arg */ ReferencedObj = ObjDesc->Reference.Object; break; default: *** @Summary ****** place:unknown ******** @Summary /home/yyzhou/pad/software-os-src/opensolaris/common/sys/usb/clients/usbser/usbser_dsdi.h:31:0 #ifndef _SYS_USB_USBSER_DSDI_H #define _SYS_USB_USBSER_DSDI_H #pragma ident "%Z%%M% %I% %E% SMI" !!/* * USB-to-serial device-specific driver interface (DSDI) */ #include <sys/types.h> #include <sys/dditypes.h> #include <sys/usb/usba.h> #include <sys/usb/usba/usbai_private.h> ******** @Summary /home/yyzhou/pad/software-os-src/opensolaris/i86pc/sys/rootnex.h:32:0 #ifndef _SYS_ROOTNEX_H #define _SYS_ROOTNEX_H #pragma ident "%Z%%M% %I% %E% SMI" !!/* * x86 root nexus implementation specific state */ #include <sys/types.h> #include <sys/conf.h> #include <sys/modctl.h> #include <sys/sunddi.h> *** @Ref ****** place:macro_variable ******** @Ref /home/yyzhou/pad/software-os-src/freebsd/powerpc/include/_stdint.h:144:0 */ #define INTMAX_MIN INT64_MIN #define INTMAX_MAX INT64_MAX #define UINTMAX_MAX UINT64_MAX !!/* * ISO/IEC 9899:1999 * 7.18.3 Limits of other integer types */ /* Limits of ptrdiff_t. */ #define PTRDIFF_MIN INT32_MIN #define PTRDIFF_MAX INT32_MAX /* Limits of sig_atomic_t. */ ******** @Ref /home/yyzhou/pad/software-os-src/linux/drivers/scsi/libiscsi.c:49:0 struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); return iscsi_hostdata(shost->hostdata); } EXPORT_SYMBOL_GPL(class_to_transport_session); !!/* Serial Number Arithmetic, 32 bits, less than, RFC1982 */ #define SNA32_CHECK 2147483648UL static int iscsi_sna_lt(u32 n1, u32 n2) { return n1 != n2 && ((n1 < n2 && (n2 - n1 < SNA32_CHECK)) || ******** @Ref @DefineTypeGrouping /home/yyzhou/pad/software-os-src/linux/drivers/usb/serial/ftdi_sio.h:254:0 #define FTDI_ELV_WS300PC_PID 0xE0F6 /* PC-Wetterstation (WS 300 PC) */ #define FTDI_ELV_FHZ1300PC_PID 0xE0E8 /* FHZ 1300 PC */ #define FTDI_ELV_WS500_PID 0xE0E9 /* PC-Wetterstation (WS 500) */ #define FTDI_ELV_EM1010PC_PID 0xE0EF /* Engery monitor EM 1010 PC */ !!/* * Definitions for ID TECH (www.idt-net.com) devices */ #define IDTECH_VID 0x0ACD /* ID TECH Vendor ID */ #define IDTECH_IDT1221U_PID 0x0300 /* IDT1221U USB to RS-232 adapter */ /* * Definitions for Omnidirectional Control Technology, Inc. devices ****** place:unknown ******** @Ref /home/yyzhou/pad/software-os-src/freebsd/dev/an/if_aironet_ieee.h:38:0 */ #ifndef _IF_AIRONET_IEEE_H #define _IF_AIRONET_IEEE_H !!/* * This header defines a simple command interface to the FreeBSD * Aironet driver (an) driver, which is used to set certain * device-specific parameters which can't be easily managed through * ifconfig(8). No, sysctl(2) is not the answer. I said a _simple_ * interface, didn't I. */ #ifndef SIOCSAIRONET #define SIOCSAIRONET SIOCSIFGENERIC #endif ******** @Ref /home/yyzhou/pad/software-os-src/freebsd/netipsec/key.c:33:0 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ !!/* * This code is referd to RFC 2367 */ #include "opt_inet.h" #include "opt_inet6.h" #include "opt_ipsec.h" ******** @Ref /home/yyzhou/pad/software-os-src/linux/drivers/mtd/devices/doc2001plus.c:559:1 WriteDOC(DOC_ECC_RESET, docptr, Mplus_ECCConf); ReadDOC(docptr, Mplus_ReadPipeInit); ReadDOC(docptr, Mplus_ReadPipeInit); !! /* Read the data via the internal pipeline through CDSN IO register, see Pipelined Read Operations 11.3 */ MemReadDOC(docptr, buf, 1054); buf[1054] = ReadDOC(docptr, Mplus_LastDataRead); buf[1055] = ReadDOC(docptr, Mplus_LastDataRead); memset(&c[0], 0, sizeof(c)); *** @NameRepeat ****** place:function ******** @NameRepeat @StupidComment /home/yyzhou/pad/software-os-src/opensolaris/common/io/1394/targets/dcam1394/dcam_frame.c:146:0 return (0); } !!/* * dcam_frame_rcv_init */ int dcam_frame_rcv_init(dcam_state_t *softc_p, int vid_mode, int frame_rate, int ring_buff_capacity) { int16_t bytes_per_pkt; /* # pkt bytes + overhead */ *** @ShortNameExplain ****** place:break ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/fs/nfs/nfs4_srv_attr.c:215:10 switch (cmd) { case NFS4ATTR_SUPPORTED: if (sarg->op == NFS4ATTR_SETIT) error = EINVAL; !! break; /* this attr is supported */ case NFS4ATTR_GETIT: na->supported_attrs = rfs4_supported_attrs; break; case NFS4ATTR_SETIT: /* ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/fs/nfs/nfs4_srv_attr.c:1554:10 switch (cmd) { case NFS4ATTR_SUPPORTED: if (sarg->op == NFS4ATTR_SETIT) error = EINVAL; !! break; /* this attr is supported */ case NFS4ATTR_GETIT: if (sarg->rdattr_error && (sarg->cs->vp == NULL)) { error = -1; /* may be okay if rdattr_error */ break; } ****** place:case ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/io/kb8042/at_keyprocess.c:897:15 switch (*keynum) { case KEYIGN: /* not a key, nor an error */ DEBUG_KD(("-> hole -> ignored\n")); return (B_FALSE); /* also not a final keycode */ !! case KEYBAD: /* not part of a legit sequence? */ DEBUG_KD(("-> bad -> ignored\n")); return (B_FALSE); /* and return not a final keycode */ default: /* ****** place:enum_misc ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/io/drm/drm.h:493:27 typedef enum { _DRM_PAGE_ALIGN = 0x01, /**< Align on page boundaries for DMA */ _DRM_AGP_BUFFER = 0x02, /**< Buffer is in AGP space */ _DRM_SG_BUFFER = 0x04, /**< Scatter/gather memory buffer */ _DRM_FB_BUFFER = 0x08, /**< Buffer is in frame buffer */ !! _DRM_PCI_BUFFER_RO = 0x10 /**< Map PCI DMA buffer read-only */ } drm_buf_flag; typedef struct drm_buf_desc { int count; /**< Number of buffers of this size */ int size; /**< Size in bytes */ int low_mark; /**< Low water mark */ ****** place:enum_value ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/cam/cam_ccb.h:651:25 */ typedef enum { AC_GETDEV_CHANGED = 0x800,/* Getdev info might have changed */ AC_INQ_CHANGED = 0x400,/* Inquiry info might have changed */ AC_TRANSFER_NEG = 0x200,/* New transfer settings in effect */ !! AC_LOST_DEVICE = 0x100,/* A device went away */ AC_FOUND_DEVICE = 0x080,/* A new device was found */ AC_PATH_DEREGISTERED = 0x040,/* A path has de-registered */ AC_PATH_REGISTERED = 0x020,/* A new path has been registered */ AC_SENT_BDR = 0x010,/* A BDR message was sent to target */ AC_SCSI_AEN = 0x008,/* A SCSI AEN has been received */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/cxgb/cxgb_offload.h:116:28 void *ctx; }; /* CPL message priority levels */ enum { !! CPL_PRIORITY_DATA = 0, /* data messages */ CPL_PRIORITY_SETUP = 1, /* connection setup messages */ CPL_PRIORITY_TEARDOWN = 0, /* connection teardown messages */ CPL_PRIORITY_LISTEN = 1, /* listen start/stop messages */ CPL_PRIORITY_ACK = 1, /* RX ACK messages */ CPL_PRIORITY_CONTROL = 1 /* offload control messages */ ******** @ShortNameExplain @StupidComment /home/yyzhou/pad/software-os-src/linux/include/linux/snmp.h:152:26 LINUX_MIB_NUM = 0, LINUX_MIB_SYNCOOKIESSENT, /* SyncookiesSent */ LINUX_MIB_SYNCOOKIESRECV, /* SyncookiesRecv */ LINUX_MIB_SYNCOOKIESFAILED, /* SyncookiesFailed */ LINUX_MIB_EMBRYONICRSTS, /* EmbryonicRsts */ !! LINUX_MIB_PRUNECALLED, /* PruneCalled */ LINUX_MIB_RCVPRUNED, /* RcvPruned */ LINUX_MIB_OFOPRUNED, /* OfoPruned */ LINUX_MIB_OUTOFWINDOWICMPS, /* OutOfWindowIcmps */ LINUX_MIB_LOCKDROPPEDICMPS, /* LockDroppedIcmps */ LINUX_MIB_ARPFILTER, /* ArpFilter */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/include/net/sctp/constants.h:356:22 * At this point, the IPv6 scopes will be mapped to these internal scopes * as much as possible. */ typedef enum { SCTP_SCOPE_GLOBAL, /* IPv4 global addresses */ !! SCTP_SCOPE_PRIVATE, /* IPv4 private addresses */ SCTP_SCOPE_LINK, /* IPv4 link local address */ SCTP_SCOPE_LOOPBACK, /* IPv4 loopback address */ SCTP_SCOPE_UNUSABLE, /* IPv4 unusable addresses */ } sctp_scope_t; ****** place:field ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/boot/arm/at91/libat91/at91rm9200.h:280:21 AT91_REG RTC_TIMALR; // Time Alarm Register AT91_REG RTC_CALALR; // Calendar Alarm Register AT91_REG RTC_SR; // Status Register AT91_REG RTC_SCCR; // Status Clear Command Register AT91_REG RTC_IER; // Interrupt Enable Register !! AT91_REG RTC_IDR; // Interrupt Disable Register AT91_REG RTC_IMR; // Interrupt Mask Register AT91_REG RTC_VER; // Valid Entry Register AT91_REG Reserved39[52]; // AT91_REG MC_RCR; // MC Remap Control Register AT91_REG MC_ASR; // MC Abort Status Register ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_vfsops.h:50:21 uint64_t z_root; /* id of root znode */ uint64_t z_unlinkedobj; /* id of unlinked zapobj */ uint64_t z_max_blksz; /* maximum block size for files */ uint64_t z_assign; /* TXG_NOWAIT or set by zil_replay() */ zilog_t *z_log; /* intent log pointer */ !! uint_t z_acl_mode; /* acl chmod/mode behavior */ uint_t z_acl_inherit; /* acl inheritance behavior */ boolean_t z_atime; /* enable atimes mount option */ boolean_t z_unmounted1; /* unmounted phase 1 */ boolean_t z_unmounted2; /* unmounted phase 2 */ uint32_t z_op_cnt; /* vnode/vfs operations ref count */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/netatm/atm_if.h:290:25 Cmn_vcc *cu_vcc; /* List of VCC's on interface */ u_int cu_intrpri; /* Highest unit interrupt priority */ int cu_savepri; /* Saved priority for locking device */ !! uma_zone_t cu_vcc_zone; /* Device VCC zone */ uma_zone_t cu_nif_zone; /* Device NIF zone */ int (*cu_ioctl) /* Interface ioctl handler */ (int, caddr_t, caddr_t); int (*cu_instvcc) /* VCC stack instantion handler */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/netgraph/bluetooth/drivers/bt3c/ng_bt3c_var.h:98:24 void *ith; /* ithread handler */ struct mbuf *m; /* current frame */ u_int32_t want; /* # of chars we want */ !! struct ifqueue inq; /* queue of incoming mbuf's */ struct ifqueue outq; /* queue of outgoing mbuf's */ #define BT3C_DEFAULTQLEN 12 /* XXX max. size of out queue */ }; typedef struct bt3c_softc bt3c_softc_t; ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/sys/ioctl_compat.h:59:16 char t_brkc; /* input delimiter (like nl) */ }; struct ltchars { char t_suspc; /* stop process signal */ !! char t_dsuspc; /* delayed stop process signal */ char t_rprntc; /* reprint line */ char t_flushc; /* flush output (toggles) */ char t_werasc; /* word erase */ char t_lnextc; /* literal next character */ }; ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/arch/sparc64/kernel/pci_impl.h:93:1 #define PBM_CHIP_TYPE_SCHIZO_PLUS 4 #define PBM_CHIP_TYPE_TOMATILLO 5 int chip_version; int chip_revision; !! /* Name used for top-level resources. */ char *name; /* OBP specific information. */ struct device_node *prom_node; u64 ino_bitmap; ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/drivers/ieee1394/nodemgr.h:41:11 /* This is the start of a Node entry structure. It should be a stable API * for which to gather info from the Node Manager about devices attached * to the bus. */ struct bus_options { !! u8 irmc; /* Iso Resource Manager Capable */ u8 cmc; /* Cycle Master Capable */ u8 isc; /* Iso Capable */ u8 bmc; /* Bus Master Capable */ u8 pmc; /* Power Manager Capable (PNP spec) */ u8 cyc_clk_acc; /* Cycle clock accuracy */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/fs/ocfs2/ocfs2_fs.h:494:29 __le32 s_checkinterval; /* Max time between checks */ /*10*/ __le64 s_lastcheck; /* Time of last check */ __le32 s_creator_os; /* OS */ __le32 s_feature_compat; /* Compatible feature set */ /*20*/ __le32 s_feature_incompat; /* Incompatible feature set */ !! __le32 s_feature_ro_compat; /* Readonly-compatible feature set */ __le64 s_root_blkno; /* Offset, in blocks, of root directory dinode */ /*30*/ __le64 s_system_dir_blkno; /* Offset, in blocks, of system directory dinode */ __le32 s_blocksize_bits; /* Blocksize for this fs */ ******** @ShortNameExplain @OsMemory /home/yyzhou/pad/software-os-src/linux/include/asm-m68knommu/m68360_pram.h:327:36 unsigned long rstate; /* Rx internal state */ unsigned long rptr; /* Rx internal data pointer */ unsigned short rbptr; /* rb BD Pointer */ unsigned short rcount; /* Rx internal byte count */ unsigned long rtemp; /* Rx temp */ !! unsigned long tstate; /* Tx internal state */ unsigned long tptr; /* Tx internal data pointer */ unsigned short tbptr; /* Tx BD pointer */ unsigned short tcount; /* Tx byte count */ unsigned long ttemp; /* Tx temp */ unsigned long rcrc; /* temp receive CRC */ ******** @ShortNameExplain @OsMemory /home/yyzhou/pad/software-os-src/linux/include/asm-m68knommu/m68360_pram.h:394:36 struct transparent_pram { /* * SCC parameter RAM */ !! unsigned short rbase; /* RX BD base address */ unsigned short tbase; /* TX BD base address */ unsigned char rfcr; /* Rx function code */ unsigned char tfcr; /* Tx function code */ unsigned short mrblr; /* Rx buffer length */ unsigned long rstate; /* Rx internal state */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/inet/nca/nca.h:164:19 timeout_id_t sq_tid; /* timer id of pending timeout() */ kcondvar_t sq_async; /* async thread blocks on */ kmutex_t sq_lock; /* lock before using any member */ clock_t sq_awaken; /* time async thread was awakened */ void *sq_priv; /* user defined private */ !! kt_did_t sq_ktid; /* kernel thread id */ } nca_squeue_t; /* * State flags and message count (i.e. properties that change) * Note: The MDB NCA module depends on the values of these flags. ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/io/drm/drm.h:499:18 } drm_buf_flag; typedef struct drm_buf_desc { int count; /**< Number of buffers of this size */ int size; /**< Size in bytes */ int low_mark; /**< Low water mark */ !! int high_mark; /**< High water mark */ drm_buf_flag flags; unsigned long agp_start; /**< * Start address of where the AGP buffers are * in the AGP aperture */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/rpc/svc.h:475:16 * specify whether rendezvouser * or normal connection */ struct xp_ops *xp_ops; int xp_addrlen; /* length of remote addr. Obsoleted */ !! char *xp_tp; /* transport provider device name */ char *xp_netid; /* network token */ struct netbuf xp_ltaddr; /* local transport address */ struct netbuf xp_rtaddr; /* remote transport address */ char xp_raddr[16]; /* remote address. Now obsoleted */ struct opaque_auth xp_verf; /* raw response verifier */ ******** @ShortNameExplain @LotsOfInfo /home/yyzhou/pad/software-os-src/opensolaris/common/sys/ddi_impldefs.h:139:30 * power management entries * components exist even if the device is not currently power managed */ struct pm_info *devi_pm_info; /* 0 => dev not power managed */ uint_t devi_pm_flags; /* pm flags */ !! int devi_pm_num_components; /* number of components */ size_t devi_pm_comp_size; /* size of devi_components */ struct pm_component *devi_pm_components; /* array of pm components */ struct dev_info *devi_pm_ppm; /* ppm attached to this one */ void *devi_pm_ppm_private; /* for use by ppm driver */ int devi_pm_dev_thresh; /* "device" threshold */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/sys/fs/cachefs_ioctl.h:182:31 struct cachefsio_rename_arg { cfs_fid_t rn_olddir; /* backfs fid of old dir */ char rn_oldname[MAXNAMELEN]; /* old name of file */ cfs_fid_t rn_newdir; /* backfs fid of new dir */ !! char rn_newname[MAXNAMELEN]; /* new name of file */ cfs_cid_t rn_cid; /* cid of renamed file */ int rn_del_getctime; /* 1 means fill in del_ctime */ cfs_cid_t rn_del_cid; /* cid of deleted file */ dl_cred_t rn_cred; /* creds */ gid_t rn_groups[NGROUPS_MAX_DEFAULT-1]; ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/sys/fs/hsfs_node.h:102:18 uint_t hs_dir_lbn; /* LBN of directory entry */ uint_t hs_dir_off; /* offset in LBN of directory entry */ struct ptable_idx *hs_ptbl_idx; /* path table index */ uint_t hs_offset; /* start offset in dir for searching */ long hs_mapcnt; /* mappings to file pages */ !! uint_t hs_seq; /* sequence number */ uint_t hs_flags; /* (see below) */ u_offset_t hs_prev_offset; /* Last read end offset (readahead) */ int hs_num_contig; /* Count of contiguous reads */ int hs_ra_bytes; /* Bytes to readahead */ kmutex_t hs_contents_lock; /* protects hsnode contents */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/sys/lvm/md_stripe.h:58:26 typedef struct ms_comp { /* components */ mdkey_t un_key; /* namespace key */ md_dev64_t un_dev; /* device number, 64 bit */ diskaddr_t un_start_block; /* comp start blkno */ !! md_m_shared_t un_mirror; /* mirror shared data */ } ms_comp_t; #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 #pragma pack() #endif ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/sun4/sys/sudev.h:301:23 */ uchar_t *async_optr; /* output pointer */ int async_ocnt; /* output count */ uint_t async_rput; /* producing pointer for input */ uint_t async_rget; /* consuming pointer for input */ !! uchar_t async_flowc; /* flow control char to send */ /* * Each character stuffed into the ring has two bytes associated * with it. The first byte is used to indicate special conditions * and the second byte is the actual data. The ring buffer ****** place:funcall ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/lmc/if_lmc.c:1842:2 write_framer(sc, Bt8370_RCR0, 0x19); /* HDB3, 3 FErrs */ /* 041:RPATT -- Receive Test Pattern configuration */ write_framer(sc, Bt8370_RPATT, 0x3E); /* looking for framed QRSS */ !! /* 042:RLB -- Receive Loop Back code detector config */ write_framer(sc, Bt8370_RLB, 0x09); /* 6 bits down; 5 bits up */ /* 043:LBA -- Loop Back Activate code */ write_framer(sc, Bt8370_LBA, 0x08); /* 10000 10000 10000 ... */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/msk/if_msk.c:3928:1 /* Reset the RAM Buffer async Tx queue. */ CSR_WRITE_1(sc, RB_ADDR(sc_if->msk_txq, RB_CTRL), RB_RST_SET); /* Reset Tx MAC FIFO. */ CSR_WRITE_4(sc, MR_ADDR(sc_if->msk_port, TX_GMF_CTRL_T), GMF_RST_SET); !! /* Set Pause Off. */ CSR_WRITE_4(sc, MR_ADDR(sc_if->msk_port, GMAC_CTRL), GMC_PAUSE_OFF); /* * The Rx Stop command will not work for Yukon-2 if the BMU does not * reach the end of packet and since we can't make sure that we have ******** @ShortNameExplain @Brief /home/yyzhou/pad/software-os-src/freebsd/netatm/uni/unisig_vc_state.c:569:1 */ cause_ie->ie_caus_loc = UNI_IE_CAUS_LOC_USER; cause_ie->ie_caus_cause = UNI_IE_CAUS_TIMER; bcopy("310", cause_ie->ie_caus_diagnostic, 3); !! /* * Send the RELEASE message. */ rc = unisig_send_msg(usp, rls_msg); unisig_free_msg(rls_msg); /* * Start timer T308 ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/netgraph/ng_l2tp.c:915:2 } /* Handle control packets */ if ((hdr & L2TP_HDR_CTRL) != 0) { !! /* Handle receive ack sequence number Nr */ ng_l2tp_seq_recv_nr(priv, nr); /* Discard ZLB packets */ if (m->m_pkthdr.len == 0) { priv->stats.recvZLBs++; ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/inet/tcp/tcp_trace.c:320:1 MAKE_DIGIT(&logbuf[REM_IPADDR + 8], ((uchar_t *)&tcp->tcp_ipha->ipha_dst)[2], B_DEC, 3); MAKE_DIGIT(&logbuf[REM_IPADDR +12], ((uchar_t *)&tcp->tcp_ipha->ipha_dst)[3], B_DEC, 3); !! /* Remote Port number */ MAKE_DIGIT(&logbuf[REM_PORTN], tcp->tcp_fport, B_DEC, 5); /* Connection date & time */ conn_hrtime = gap_time + traceinfo->tcptrh_conn_time; hrt2ts(conn_hrtime, &conn_tstime); ******** @ShortNameExplain @OsBlocking /home/yyzhou/pad/software-os-src/opensolaris/common/io/lvm/softpart/sp.c:716:2 buf->b_lblkno = un->un_ext[ext].un_poff - 1; buf->b_bufsize = sizeof (mp_watermark_t); buf->b_un.b_addr = kmem_alloc(sizeof (mp_watermark_t), KM_SLEEP); !! /* * make the call non-blocking so that it is not affected * by a set take. */ md_call_strategy(buf, MD_STR_MAPPED|MD_NOBLOCK, NULL); (void) biowait(buf); if (buf->b_flags & B_ERROR) { cmn_err(CE_WARN, "md: %s: open failed, could not " ****** place:function ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/ipmi/ipmi.c:594:0 TAILQ_INSERT_TAIL(&sc->ipmi_pending_requests, req, ir_link); cv_signal(&sc->ipmi_request_added); return (0); } !!/* * Watchdog event handler. */ static void ipmi_set_watchdog(struct ipmi_softc *sc, int sec) { struct ipmi_request *req; ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/drivers/net/cxgb3/t3_hw.c:1593:0 t3_fatal_err(adapter); } #define MC7_INTR_FATAL (F_UE | V_PE(M_PE) | F_AE) !!/* * MC7 interrupt handler. */ static void mc7_intr_handler(struct mc7 *mc7) { struct adapter *adapter = mc7->adapter; u32 cause = t3_read_reg(adapter, mc7->offset + A_MC7_INT_CAUSE); ****** place:function_misc ******** @ShortNameExplain @OsSpecific /home/yyzhou/pad/software-os-src/freebsd/dev/de/if_de.c:1986:30 for (idx = 0, data = 0; idx < 16; idx++) { data <<= 1; /* this is NOOP on the first pass through */ csr ^= MII_CLKON; MII_EMIT; /* clock high; data valid */ if (TULIP_CSR_READ(sc, csr_srom_mii) & MII_DIN) data |= 1; !! csr ^= MII_CLKOFF; MII_EMIT; /* clock low; data not valid */ } csr ^= MII_RD; MII_EMIT; /* clock low; turn off read */ return data; } ****** place:if ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/io/aggr/aggr_grp.c:1267:2 if (aggr_port_start(port) != 0) { rw_exit(&port->lp_lock); continue; } !! /* set port promiscuous mode */ if (aggr_port_promisc(port, grp->lg_promisc) != 0) aggr_port_stop(port); rw_exit(&port->lp_lock); } ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/pcmcia/cs/cs.c:6834:1 * is, we don't support SS using this call. */ if (CLIENT_HANDLE_IS_SS(client_handle)) return (CS_UNSUPPORTED_FUNCTION); !! /* * Get a pointer to this client's socket structure. */ if ((sp = cs_get_sp(GET_CLIENT_SOCKET(client_handle))) == NULL) return (CS_BAD_SOCKET); EVENT_THREAD_MUTEX_ENTER(client_lock_acquired, sp); ****** place:include ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/io/fdc.c:248:0 nodev, /* reset */ (struct cb_ops *)0, /* driver operations */ &fdc_bus_ops /* bus operations */ }; !!/* * This is the loadable module wrapper. */ #include <sys/modctl.h> extern struct mod_ops mod_driverops; static struct modldrv modldrv = { ****** place:initalizer_misc ******** @ShortNameExplain @Devil /home/yyzhou/pad/software-os-src/linux/arch/mips/au1000/mtx-1/irqmap.c:55:40 char irq_tab_alchemy[][5] __initdata = { [0] = { -1, INTA, INTA, INTX, INTX}, /* IDSEL 00 - AdapterA-Slot0 (top) */ [1] = { -1, INTB, INTA, INTX, INTX}, /* IDSEL 01 - AdapterA-Slot1 (bottom) */ [2] = { -1, INTC, INTD, INTX, INTX}, /* IDSEL 02 - AdapterB-Slot0 (top) */ [3] = { -1, INTD, INTC, INTX, INTX}, /* IDSEL 03 - AdapterB-Slot1 (bottom) */ !! [4] = { -1, INTA, INTB, INTX, INTX}, /* IDSEL 04 - AdapterC-Slot0 (top) */ [5] = { -1, INTB, INTA, INTX, INTX}, /* IDSEL 05 - AdapterC-Slot1 (bottom) */ [6] = { -1, INTC, INTD, INTX, INTX}, /* IDSEL 06 - AdapterD-Slot0 (top) */ [7] = { -1, INTD, INTC, INTX, INTX}, /* IDSEL 07 - AdapterD-Slot1 (bottom) */ }; ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/io/net80211/net80211.c:56:9 uint32_t ieee80211_debug = 0x0; /* debug msg flags */ const char *ieee80211_phymode_name[] = { "auto", /* IEEE80211_MODE_AUTO */ !! "11a", /* IEEE80211_MODE_11A */ "11b", /* IEEE80211_MODE_11B */ "11g", /* IEEE80211_MODE_11G */ "FH", /* IEEE80211_MODE_FH */ "turboA", /* IEEE80211_MODE_TURBO_A */ "turboG", /* IEEE80211_MODE_TURBO_G */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/intel/io/dnet.c:302:30 static struct qinit rinit = { /* read queues */ NULL, gld_rsrv, gld_open, gld_close, NULL, &minfo, NULL }; !!static struct qinit winit = { /* write queues */ gld_wput, gld_wsrv, NULL, NULL, NULL, &minfo, NULL }; static struct streamtab dnetinfo = {&rinit, &winit, NULL, NULL}; ****** place:macro_variable ******** @ShortNameExplain @Devil @OsRegister /home/yyzhou/pad/software-os-src/freebsd/arm/at91/at91rm92reg.h:200:32 #define PIOD_MDSR (0xa00 + 88) /* Multi driver status register */ #define PIOD_PPUDR (0xa00 + 96) /* Pull-up disable register */ #define PIOD_PPUER (0xa00 + 100) /* Pull-up enable register */ #define PIOD_PPUSR (0xa00 + 104) /* Pad pull-up status register */ #define PIOD_ASR (0xa00 + 112) /* Select A register */ !!#define PIOD_BSR (0xa00 + 116) /* Select B register */ #define PIOD_ABSR (0xa00 + 120) /* AB Select status register */ #define PIOD_OWER (0xa00 + 160) /* Output Write enable register */ #define PIOD_OWDR (0xa00 + 164) /* Output write disable register */ #define PIOD_OWSR (0xa00 + 168) /* Output write status register */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/boot/arm/at91/libat91/at91rm9200.h:1134:43 AT91_REG MCI_PTCR; // PDC Transfer Control Register AT91_REG MCI_PTSR; // PDC Transfer Status Register } AT91S_MCI, *AT91PS_MCI; // -------- MCI_CR : (MCI Offset: 0x0) MCI Control Register -------- !!#define AT91C_MCI_MCIEN (0x1u << 0) // (MCI) Multimedia Interface Enable #define AT91C_MCI_MCIDIS (0x1u << 1) // (MCI) Multimedia Interface Disable #define AT91C_MCI_PWSEN (0x1u << 2) // (MCI) Power Save Mode Enable #define AT91C_MCI_PWSDIS (0x1u << 3) // (MCI) Power Save Mode Disable // -------- MCI_MR : (MCI Offset: 0x4) MCI Mode Register -------- #define AT91C_MCI_CLKDIV (0x1u << 0) // (MCI) Clock Divider ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/boot/arm/at91/libat91/at91rm9200.h:2397:57 #define AT91C_BASE_TC0 ((AT91PS_TC) 0xFFFA0000) // (TC0) Base Address #define AT91C_BASE_TCB0 ((AT91PS_TCB) 0xFFFA0000) // (TCB0) Base Address #define AT91C_BASE_UHP ((AT91PS_UHP) 0x00300000) // (UHP) Base Address #define AT91C_BASE_EMAC ((AT91PS_EMAC) 0xFFFBC000) // (EMAC) Base Address #define AT91C_BASE_EBI ((AT91PS_EBI) 0xFFFFFF60) // (EBI) Base Address !!#define AT91C_BASE_SMC2 ((AT91PS_SMC2) 0xFFFFFF70) // (SMC2) Base Address #define AT91C_BASE_SDRC ((AT91PS_SDRC) 0xFFFFFF90) // (SDRC) Base Address #define AT91C_BASE_BFC ((AT91PS_BFC) 0xFFFFFFC0) // (BFC) Base Address // ***************************************************************************** // MEMORY MAPPING DEFINITIONS FOR AT91RM9200 ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/boot/efi/include/i386/pe.h:210:49 #define IMAGE_SUBSYSTEM_UNKNOWN 0 // Unknown subsystem. #define IMAGE_SUBSYSTEM_NATIVE 1 // Image doesn't require a subsystem. #define IMAGE_SUBSYSTEM_WINDOWS_GUI 2 // Image runs in the Windows GUI subsystem. #define IMAGE_SUBSYSTEM_WINDOWS_CUI 3 // Image runs in the Windows character subsystem. #define IMAGE_SUBSYSTEM_OS2_CUI 5 // image runs in the OS/2 character subsystem. !!#define IMAGE_SUBSYSTEM_POSIX_CUI 7 // image run in the Posix character subsystem. // Directory Entries #define IMAGE_DIRECTORY_ENTRY_EXPORT 0 // Export Directory ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/boot/efi/include/i386/pe.h:254:57 #define IMAGE_SIZEOF_SECTION_HEADER 40 #define IMAGE_SCN_TYPE_NO_PAD 0x00000008 // Reserved. #define IMAGE_SCN_CNT_CODE 0x00000020 // Section contains code. !!#define IMAGE_SCN_CNT_INITIALIZED_DATA 0x00000040 // Section contains initialized data. #define IMAGE_SCN_CNT_UNINITIALIZED_DATA 0x00000080 // Section contains uninitialized data. #define IMAGE_SCN_LNK_OTHER 0x00000100 // Reserved. #define IMAGE_SCN_LNK_INFO 0x00000200 // Section contains comments or some other type of information. #define IMAGE_SCN_LNK_REMOVE 0x00000800 // Section contents will not become part of image. ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/contrib/opensolaris/uts/common/sys/dkio.h:351:36 * They include the ability to get/set capabilities and to issue a read to a * specific underlying device of a replicated device. */ #define DKIOCGETVOLCAP (DKIOC | 25) /* Get volume capabilities */ !!#define DKIOCSETVOLCAP (DKIOC | 26) /* Set volume capabilities */ #define DKIOCDMR (DKIOC | 27) /* Issue a directed read */ typedef uint_t volcapinfo_t; typedef uint_t volcapset_t; ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/aic/aic6360reg.h:55:22 #define CLRSINT1 0x0c /* Clear SCSI interrupts 1 */ #define SSTAT1 0x0c /* SCSI status 1 */ #define SSTAT2 0x0d /* SCSI status 2 */ #define SCSITEST 0x0e /* SCSI test control */ #define SSTAT3 0x0e /* SCSI status 3 */ !!#define CLRSERR 0x0f /* Clear SCSI errors */ #define SSTAT4 0x0f /* SCSI status 4 */ #define SIMODE0 0x10 /* SCSI interrupt mode 0 */ #define SIMODE1 0x11 /* SCSI interrupt mode 1 */ #define DMACNTRL0 0x12 /* DMA control 0 */ #define DMACNTRL1 0x13 /* DMA control 1 */ ******** @ShortNameExplain @OsRegister /home/yyzhou/pad/software-os-src/freebsd/dev/ctau/hdc64570.h:52:27 #define HD_RXS_0 0x36 /* RX clock source register chan 0 */ #define HD_RXS_1 0x56 /* RX clock source register chan 1 */ #define HD_TXS_0 0x37 /* TX clock source register chan 0 */ #define HD_TXS_1 0x57 /* TX clock source register chan 1 */ #define HD_TMC_0 0x35 /* time constant register chan 0 */ !!#define HD_TMC_1 0x55 /* time constant register chan 1 */ #define HD_CMD_0 0x2c /* command register chan 0, wo */ #define HD_CMD_1 0x4c /* command register chan 1, wo */ #define HD_ST0_0 0x22 /* status register 0 chan 0, ro */ #define HD_ST0_1 0x42 /* status register 0 chan 1, ro */ #define HD_ST1_0 0x23 /* status register 1 chan 0 */ ******** @ShortNameExplain @OsRegister @OsInterrupt /home/yyzhou/pad/software-os-src/freebsd/dev/ctau/hdc64570.h:386:23 /* * Interrupt enable register 1 (IE1) bits. */ #define IE1_CDCDE 0x04 /* carrier changed */ !!#define IE1_CCTSE 0x08 /* CTS changed */ #define IE1_IDLE 0x40 /* transmitter idle, ro */ #define IE1_ASYNC_BRKEE 0x01 /* break end detected */ #define IE1_ASYNC_BRKDE 0x02 /* break start detected */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/cx/cxreg.h:452:28 * Transmit end of interrupt registers (TEOIR) bits. */ #define TEOI_TERMBUFF 0x80 /* force current buffer to be discarded */ #define TEOI_EOFR 0x40 /* end of frame in interrupt mode */ #define TEOI_SETTM2 0x20 /* set general timer 2 in sync mode */ !!#define TEOI_SETTM1 0x10 /* set general timer 1 in sync mode */ #define TEOI_NOTRANSF 0x08 /* no transfer of data on this interrupt */ /* * Receive end of interrupt registers (REOIR) bits. */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/esp/ncr53c9xreg.h:268:30 #define NCRAMDCFG4_GE12NS 0x00 /* Signal window 12ns */ #define NCRAMDCFG4_GE25NS 0x80 /* Signal window 25ns */ #define NCRAMDCFG4_GE35NS 0x40 /* Signal window 35ns */ #define NCRAMDCFG4_GE0NS 0xc0 /* Signal window 0ns */ #define NCRAMDCFG4_PWD 0x20 /* Reduced power feature */ !!#define NCRAMDCFG4_RSVD 0x13 /* Reserved */ #define NCRAMDCFG4_RAE 0x08 /* Active neg. REQ/ACK */ #define NCRAMDCFG4_RADE 0x04 /* Active neg. REQ/ACK/DAT */ /* * FAS366 ******** @ShortNameExplain @OsInterrupt /home/yyzhou/pad/software-os-src/freebsd/dev/hifn/hifn7751reg.h:102:38 /* * Masks for the "length" field of struct hifn_desc. */ #define HIFN_D_LENGTH 0x0000ffff /* length bit mask */ !!#define HIFN_D_MASKDONEIRQ 0x02000000 /* mask the done interrupt */ #define HIFN_D_DESTOVER 0x04000000 /* destination overflow */ #define HIFN_D_OVER 0x08000000 /* overflow */ #define HIFN_D_LAST 0x20000000 /* last descriptor in chain */ #define HIFN_D_JUMP 0x40000000 /* jump descriptor */ #define HIFN_D_VALID 0x80000000 /* valid bit */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/ic/cd1400.h:178:25 #define CD1400_SCHR2 0x1B /* special character 2 */ #define CD1400_SCHR3 0x1C /* special character 3 */ #define CD1400_SCHR4 0x1D /* special character 4 */ #define CD1400_SCRL 0x22 /* special character range, low */ #define CD1400_SCRH 0x23 /* special character range, high */ !!#define CD1400_LNC 0x24 /* lnext character */ #define CD1400_MCOR1 0x15 /* modem change option 1 */ #define CD1400_MCOR1_DSRzd (1<<7) /* DSR one-to-zero delta */ #define CD1400_MCOR1_CTSzd (1<<6) #define CD1400_MCOR1_RIzd (1<<5) #define CD1400_MCOR1_CDzd (1<<4) ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/isp/isp_target.h:547:22 #define CT_NOPATH 0x07 /* invalid ITL nexus */ #define CT_INVRXID 0x08 /* (FC only) Invalid RX_ID */ #define CT_DATA_OVER 0x09 /* (FC only) Data Overrun */ #define CT_RSELTMO 0x0A /* reselection timeout after 2 tries */ #define CT_TIMEOUT 0x0B /* timed out */ !!#define CT_RESET 0x0E /* SCSI Bus Reset occurred */ #define CT_PARITY 0x0F /* Uncorrectable Parity Error */ #define CT_BUS_ERROR 0x10 /* (FC Only) DMA PCI Error */ #define CT_PANIC 0x13 /* Unrecoverable Error */ #define CT_PHASE_ERROR 0x14 /* Bus phase sequence error */ #define CT_DATA_UNDER 0x15 /* (FC only) Data Underrun */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/lmc/if_lmc.h:360:25 #define CTL1_XTX 0x01 /* Transmit X-bit value */ #define CTL1_3LOOP 0x02 /* framer loop back */ #define CTL1_SER 0x04 /* SERial interface selected */ #define CTL1_M13MODE 0x08 /* M13 frame format */ #define CTL1_TXIDL 0x10 /* Transmit Idle signal */ !!#define CTL1_ENAIS 0x20 /* Enable AIS upon LOS */ #define CTL1_TXAIS 0x40 /* Transmit Alarm Indication Sig */ #define CTL1_NOFEBE 0x80 /* No Far End Block Errors */ #define CTL5_EMODE 0x80 /* rev B Extended features enabled */ #define CTL5_START 0x40 /* transmit the FEAC msg now */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/mii/nsphyterreg.h:119:30 #define PCSR_F_LINK_100 0x0040 /* force good link in 100Mb/s */ #define PCSR_CIM_DIS 0x0020 /* carrier integrity monitor disable */ #define PCSR_CIM_STATUS 0x0010 /* carrier integrity monitor status */ #define PCSR_CODE_ERR 0x0008 /* code errors */ #define PCSR_PME_ERR 0x0004 /* premature end errors */ !!#define PCSR_LINK_ERR 0x0002 /* link errors */ #define PCSR_PKT_ERR 0x0001 /* packet errors */ /* Below are the MacPHYTER bits that are different. */ #define PCSR_MP_BYP_4B5B 0x1000 /* bypass encoder */ #define PCSR_MP_FREE_CLK 0x0800 /* free funning RX clock */ #define PCSR_MP_TQ_EN 0x0400 /* enable True Quiet mode */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/sf/if_sfreg.h:151:39 #define SF_PCIDEVCFG_ABTONPERR 0x00000020 #define SF_PCIDEVCFG_STPONPERR 0x00000040 #define SF_PCIDEVCFG_MR_ENB 0x00000080 #define SF_PCIDEVCFG_FIFOTHR 0x00000F00 #define SF_PCIDEVCFG_STPONCA 0x00001000 !!#define SF_PCIDEVCFG_PCIMEN 0x00002000 /* enable PCI bus master */ #define SF_PCIDEVCFG_LATSTP 0x00004000 #define SF_PCIDEVCFG_BYTE_ENB 0x00008000 #define SF_PCIDEVCFG_EECSWIDTH 0x00070000 #define SF_PCIDEVCFG_STPMWCA 0x00080000 #define SF_PCIDEVCFG_REGCSWIDTH 0x00700000 ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/trm/trm.h:498:38 #define SCSI_INQ_RELADR 0x80 /* device supports relative addressing*/ #define SCSI_INQ_WBUS32 0x40 /* device supports 32 bit data xfers */ #define SCSI_INQ_WBUS16 0x20 /* device supports 16 bit data xfers */ #define SCSI_INQ_SYNC 0x10 /* device supports synchronous xfer */ #define SCSI_INQ_LINKED 0x08 /* device supports linked commands */ !!#define SCSI_INQ_CMDQUEUE 0x02 /* device supports command queueing */ #define SCSI_INQ_SFTRE 0x01 /* device supports soft resets */ /* *========================================================== * EEPROM byte offset *========================================================== ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/usb/if_udavreg.h:48:32 /* Packet length */ #define UDAV_MIN_FRAME_LEN 60 /* Request */ #define UDAV_REQ_REG_READ 0x00 /* Read from register(s) */ !!#define UDAV_REQ_REG_WRITE 0x01 /* Write to register(s) */ #define UDAV_REQ_REG_WRITE1 0x03 /* Write to a register */ #define UDAV_REQ_MEM_READ 0x02 /* Read from memory */ #define UDAV_REQ_MEM_WRITE 0x05 /* Write to memory */ #define UDAV_REQ_MEM_WRITE1 0x07 /* Write a byte to memory */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/vge/if_vgereg.h:506:32 #define VGE_DMACFG1_PERR_DIS 0x10 /* disable parity error checking */ #define VGE_DMACFG1_XMRL 0x20 /* disable memory read line support */ /* RX MAC config register */ !!#define VGE_RXCFG_VLANFILT 0x01 /* filter VLAN ID mismatches */ #define VGE_RXCFG_VTAGOPT 0x06 /* VLAN tag handling */ #define VGE_RXCFG_FIFO_LOWAT 0x08 /* RX FIFO low watermark (7QW/15QW) */ #define VGE_RXCFG_FIFO_THR 0x30 /* RX FIFO threshold */ #define VGE_RXCFG_ARB_PRIO 0x80 /* arbitration priority */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/i386/include/_limits.h:68:33 #ifdef _LARGE_LONG #define __ULONG_MAX 0xffffffffffffffffUL #define __LONG_MAX 0x7fffffffffffffffL #define __LONG_MIN (-0x7fffffffffffffffL - 1) #else !!#define __ULONG_MAX 0xffffffffUL /* max value for an unsigned long */ #define __LONG_MAX 0x7fffffffL /* max value for a long */ #define __LONG_MIN (-0x7fffffffL - 1) /* min value for a long */ #endif /* max value for an unsigned long long */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/netipx/ipx_pcb.h:105:28 */ #define IPXP_IN_ABORT 0x1 /* Calling abort through socket. */ #define IPXP_RAWIN 0x2 /* Show headers on input. */ #define IPXP_RAWOUT 0x4 /* Show header on output. */ #define IPXP_ALL_PACKETS 0x8 /* Turn off higher proto processing. */ !!#define IPXP_CHECKSUM 0x10 /* Use checksum on this socket. */ #define IPXP_DROPPED 0x20 /* Connection dropped. */ #define IPXP_SPX 0x40 /* SPX PCB. */ #define IPX_WILDCARD 1 ******** @ShortNameExplain @StupidComment /home/yyzhou/pad/software-os-src/freebsd/pci/if_rlreg.h:959:0 /* * Compaq vendor ID */ #define CP_VENDORID 0x021B !!/* * Edimax vendor ID */ #define EDIMAX_VENDORID 0x13D1 /* * Edimax EP-4103DL cardbus device ID */ ******** @ShortNameExplain @OsRegister /home/yyzhou/pad/software-os-src/freebsd/sparc64/sbus/sbusreg.h:74:28 #define SBR_CTL 0x2000 /* SBUS Control Register */ #define SBR_AFS 0x2010 /* SBUS AFSR */ #define SBR_AFA 0x2018 /* SBUS AFAR */ #define SBR_CONFIG0 0x2020 /* SBUS Slot 0 config register */ #define SBR_CONFIG1 0x2028 /* SBUS Slot 1 config register */ !!#define SBR_CONFIG2 0x2030 /* SBUS Slot 2 config register */ #define SBR_CONFIG3 0x2038 /* SBUS Slot 3 config register */ #define SBR_CONFIG13 0x2040 /* Slot 13 config register <audio> */ #define SBR_CONFIG14 0x2048 /* Slot 14 config register <macio> */ #define SBR_CONFIG15 0x2050 /* Slot 15 config register <slavio> */ #define SBR_IOMMU 0x2400 /* IOMMU register block */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/arch/sparc64/kernel/pci_psycho.c:264:57 #define PSYCHO_IOMMU_TSBSZ_1K 0x0000000000000000UL /* TSB Table 1024 8-byte entries */ #define PSYCHO_IOMMU_TSBSZ_2K 0x0000000000010000UL /* TSB Table 2048 8-byte entries */ #define PSYCHO_IOMMU_TSBSZ_4K 0x0000000000020000UL /* TSB Table 4096 8-byte entries */ #define PSYCHO_IOMMU_TSBSZ_8K 0x0000000000030000UL /* TSB Table 8192 8-byte entries */ #define PSYCHO_IOMMU_TSBSZ_16K 0x0000000000040000UL /* TSB Table 16k 8-byte entries */ !!#define PSYCHO_IOMMU_TSBSZ_32K 0x0000000000050000UL /* TSB Table 32k 8-byte entries */ #define PSYCHO_IOMMU_TSBSZ_64K 0x0000000000060000UL /* TSB Table 64k 8-byte entries */ #define PSYCHO_IOMMU_TSBSZ_128K 0x0000000000070000UL /* TSB Table 128k 8-byte entries */ #define PSYCHO_IOMMU_CTRL_RESV2 0x000000000000fff8UL /* Reserved */ #define PSYCHO_IOMMU_CTRL_TBWSZ 0x0000000000000004UL /* Assumed page size, 0=8k 1=64k */ #define PSYCHO_IOMMU_CTRL_DENAB 0x0000000000000002UL /* Diagnostic mode enable */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/drivers/atm/uPD98402.h:95:31 /* IACM is at 0x08 */ #define uPD98402_IACM_PFRF 0x01 /* don't generate path FERF */ #define uPD98402_IACM_LFRF 0x02 /* don't generate line FERF */ /* PCOCR is at 0x010, PCOMR is at 0x11 */ !!#define uPD98402_PCO_B1EC 0x01 /* B1ECT overflow */ #define uPD98402_PCO_B2EC 0x02 /* B2ECT overflow */ #define uPD98402_PCO_B3EC 0x04 /* B3ECT overflow */ #define uPD98402_PCO_PFBC 0x08 /* PFEBC overflow */ #define uPD98402_PCO_LFBC 0x10 /* LFEVC overflow */ #define uPD98402_PCO_HECC 0x20 /* HECCT overflow */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/drivers/media/video/stk-sensor.c:156:23 #define REG_AEB 0x25 /* AGC lower limit */ #define REG_VPT 0x26 /* AGC/AEC fast mode op region */ #define REG_ADVFL 0x2d /* Insert dummy lines (LSB) */ #define REG_ADVFH 0x2e /* Insert dummy lines (MSB) */ #define REG_HSYST 0x30 /* HSYNC rising edge delay */ !!#define REG_HSYEN 0x31 /* HSYNC falling edge delay */ #define REG_HREF 0x32 /* HREF pieces */ #define REG_TSLB 0x3a /* lots of stuff */ #define TSLB_YLAST 0x04 /* UYVY or VYUY - see com13 */ #define TSLB_BYTEORD 0x08 /* swap bytes in 16bit mode? */ #define REG_COM11 0x3b /* Control 11 */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/drivers/message/fusion/mptbase.h:437:40 #define MPT_IOCTL_STATUS_RF_VALID 0x02 /* The Reply Frame is VALID */ #define MPT_IOCTL_STATUS_TIMER_ACTIVE 0x04 /* The timer is running */ #define MPT_IOCTL_STATUS_SENSE_VALID 0x08 /* Sense data is valid */ #define MPT_IOCTL_STATUS_COMMAND_GOOD 0x10 /* Command Status GOOD */ #define MPT_IOCTL_STATUS_TMTIMER_ACTIVE 0x20 /* The TM timer is running */ !!#define MPT_IOCTL_STATUS_TM_FAILED 0x40 /* User TM request failed */ #define MPTCTL_RESET_OK 0x01 /* Issue Bus Reset */ typedef struct _MPT_IOCTL { struct _MPT_ADAPTER *ioc; ******** @ShortNameExplain @OsSpecific /home/yyzhou/pad/software-os-src/linux/drivers/net/netxen/netxen_nic_phan_reg.h:64:57 #define CRB_CMDPEG_STATE NETXEN_NIC_REG(0x50) #define CRB_MMAP_SIZE_0 NETXEN_NIC_REG(0x54) #define CRB_MMAP_SIZE_1 NETXEN_NIC_REG(0x58) #define CRB_MMAP_SIZE_2 NETXEN_NIC_REG(0x5c) #define CRB_MMAP_SIZE_3 NETXEN_NIC_REG(0x60) !!#define CRB_GLOBAL_INT_COAL NETXEN_NIC_REG(0x64) /* interrupt coalescing */ #define CRB_INT_COAL_MODE NETXEN_NIC_REG(0x68) #define CRB_MAX_RCV_BUFS NETXEN_NIC_REG(0x6c) #define CRB_TX_INT_THRESHOLD NETXEN_NIC_REG(0x70) #define CRB_RX_PKT_TIMER NETXEN_NIC_REG(0x74) #define CRB_TX_PKT_TIMER NETXEN_NIC_REG(0x78) ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/drivers/scsi/initio.h:628:37 #define NCC1_AUTOTERM 0x10 /* Enable auto terminator */ #define NCC1_PWRMGR 0x80 /* Enable power management */ /* Bit definition for SCSI Target configuration byte */ #define NTC_DISCONNECT 0x08 /* Enable SCSI disconnect */ !!#define NTC_SYNC 0x10 /* SYNC_NEGO */ #define NTC_NO_WDTR 0x20 /* SYNC_NEGO */ #define NTC_1GIGA 0x40 /* 255 head / 63 sectors (64/32) */ #define NTC_SPINUP 0x80 /* Start disk drive */ /* Default NVRam values */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/drivers/scsi/qla1280.h:979:35 /* (data from target to initiator) */ #define OF_DATA_OUT BIT_7 /* Data out from initiator */ /* (data from initiator to target) */ #define OF_NO_DATA (BIT_7 | BIT_6) #define OF_DISC_DISABLED BIT_15 /* Disconnects disabled */ !!#define OF_DISABLE_SDP BIT_24 /* Disable sending save data ptr */ #define OF_SEND_RDP BIT_26 /* Send restore data pointers msg */ #define OF_FORCE_DISC BIT_30 /* Disconnects mandatory */ #define OF_SSTS BIT_31 /* Send SCSI status */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/include/asm-arm/arch-ixp4xx/ixp4xx-regs.h:602:28 #define USIR1_IR10 (1 << 2) /* Interrupt request ep 10 */ #define USIR1_IR11 (1 << 3) /* Interrupt request ep 11 */ #define USIR1_IR12 (1 << 4) /* Interrupt request ep 12 */ #define USIR1_IR13 (1 << 5) /* Interrupt request ep 13 */ #define USIR1_IR14 (1 << 6) /* Interrupt request ep 14 */ !!#define USIR1_IR15 (1 << 7) /* Interrupt request ep 15 */ #define DCMD_LENGTH 0x01fff /* length mask (max = 8K - 1) */ /* "fuse" bits of IXP_EXP_CFG2 */ #define IXP4XX_FEATURE_RCOMP (1 << 0) ******** @ShortNameExplain @OsRegister /home/yyzhou/pad/software-os-src/linux/include/asm-arm/arch-pxa/pxa-regs.h:532:30 #define GCR_PRIRDY_IEN (1 << 8) /* Primary Ready Interrupt Enable */ #define GCR_SECRES_IEN (1 << 5) /* Secondary Resume Interrupt Enable */ #define GCR_PRIRES_IEN (1 << 4) /* Primary Resume Interrupt Enable */ #define GCR_ACLINK_OFF (1 << 3) /* AC-link Shut Off */ #define GCR_WARM_RST (1 << 2) /* AC97 Warm Reset */ !!#define GCR_COLD_RST (1 << 1) /* AC'97 Cold Reset (0 = active) */ #define GCR_GIE (1 << 0) /* Codec GPI Interrupt Enable */ #define POSR __REG(0x40500010) /* PCM Out Status Register */ #define POSR_FIFOE (1 << 4) /* FIFO error */ #define POSR_FSR (1 << 2) /* FIFO Service Request */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/include/asm-arm/arch-pxa/regs-ssp.h:50:27 #define SSCR0_MOD (1 << 31) /* Mode (normal or network) */ #endif #define SSCR1_RIE (1 << 0) /* Receive FIFO Interrupt Enable */ #define SSCR1_TIE (1 << 1) /* Transmit FIFO Interrupt Enable */ !!#define SSCR1_LBM (1 << 2) /* Loop-Back Mode */ #define SSCR1_SPO (1 << 3) /* Motorola SPI SSPSCLK polarity setting */ #define SSCR1_SPH (1 << 4) /* Motorola SPI SSPSCLK phase setting */ #define SSCR1_MWDS (1 << 5) /* Microwire Transmit Data Size */ #define SSCR1_TFT (0x000003c0) /* Transmit FIFO Threshold (mask) */ #define SSCR1_TxTresh(x) (((x) - 1) << 6) /* level [1..16] */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/include/asm-arm/arch-versatile/platform.h:329:43 #define INT_GPIOINT2 8 /* GPIO 2 */ #define INT_GPIOINT3 9 /* GPIO 3 */ #define INT_RTCINT 10 /* Real Time Clock */ #define INT_SSPINT 11 /* Synchronous Serial Port */ #define INT_UARTINT0 12 /* UART 0 on development chip */ !!#define INT_UARTINT1 13 /* UART 1 on development chip */ #define INT_UARTINT2 14 /* UART 2 on development chip */ #define INT_SCIINT 15 /* Smart Card Interface */ #define INT_CLCDINT 16 /* CLCD controller */ #define INT_DMAINT 17 /* DMA controller */ #define INT_PWRFAILINT 18 /* Power failure */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/include/asm-blackfin/mach-bf537/defBF537.h:85:36 #define EMAC_RXC_OK 0xFFC03100 /* RX Frame Successful Count */ #define EMAC_RXC_FCS 0xFFC03104 /* RX Frame FCS Failure Count */ #define EMAC_RXC_ALIGN 0xFFC03108 /* RX Alignment Error Count */ #define EMAC_RXC_OCTET 0xFFC0310C /* RX Octets Successfully Received Count */ !!#define EMAC_RXC_DMAOVF 0xFFC03110 /* Internal MAC Sublayer Error RX Frame Count */ #define EMAC_RXC_UNICST 0xFFC03114 /* Unicast RX Frame Count */ #define EMAC_RXC_MULTI 0xFFC03118 /* Multicast RX Frame Count */ #define EMAC_RXC_BROAD 0xFFC0311C /* Broadcast RX Frame Count */ #define EMAC_RXC_LNERRI 0xFFC03120 /* RX Frame In Range Error Count */ #define EMAC_RXC_LNERRO 0xFFC03124 /* RX Frame Out Of Range Error Count */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/include/asm-blackfin/mach-bf548/defBF549.h:755:55 #define SDH_STATUS_CLR 0xffc03938 /* SDH Status Clear */ #define SDH_MASK0 0xffc0393c /* SDH Interrupt0 Mask */ #define SDH_MASK1 0xffc03940 /* SDH Interrupt1 Mask */ #define SDH_FIFO_CNT 0xffc03948 /* SDH FIFO Counter */ #define SDH_FIFO 0xffc03980 /* SDH Data FIFO */ !!#define SDH_E_STATUS 0xffc039c0 /* SDH Exception Status */ #define SDH_E_MASK 0xffc039c4 /* SDH Exception Mask */ #define SDH_CFG 0xffc039c8 /* SDH Configuration */ #define SDH_RD_WAIT_EN 0xffc039cc /* SDH Read Wait Enable */ #define SDH_PID0 0xffc039d0 /* SDH Peripheral Identification0 */ #define SDH_PID1 0xffc039d4 /* SDH Peripheral Identification1 */ ******** @ShortNameExplain @OsInterrupt /home/yyzhou/pad/software-os-src/linux/include/asm-blackfin/mach-bf548/defBF549.h:1376:46 #define HDONEEN4 0x10000 /* DMA4 Half Done Interrupt Enable */ #define DONEEN4 0x20000 /* DMA4 Done Interrupt Enable */ #define HDONEEN5 0x100000 /* DMA5 Half Done Interrupt Enable */ #define DONEEN5 0x200000 /* DMA5 Done Interrupt Enable */ #define HDONEEN6 0x1000000 /* DMA6 Half Done Interrupt Enable */ !!#define DONEEN6 0x2000000 /* DMA6 Done Interrupt Enable */ #define HDONEEN7 0x10000000 /* DMA7 Half Done Interrupt Enable */ #define DONEEN7 0x20000000 /* DMA7 Done Interrupt Enable */ /* Bit masks for MXVR_POSITION */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/include/asm-blackfin/mach-bf548/defBF549.h:1723:46 #define CMRBE5 0x200000 /* Control Message Receive Buffer Entry 5 */ #define CMRBE6 0x400000 /* Control Message Receive Buffer Entry 6 */ #define CMRBE7 0x800000 /* Control Message Receive Buffer Entry 7 */ #define CMRBE8 0x1000000 /* Control Message Receive Buffer Entry 8 */ #define CMRBE9 0x2000000 /* Control Message Receive Buffer Entry 9 */ !!#define CMRBE10 0x4000000 /* Control Message Receive Buffer Entry 10 */ #define CMRBE11 0x8000000 /* Control Message Receive Buffer Entry 11 */ #define CMRBE12 0x10000000 /* Control Message Receive Buffer Entry 12 */ #define CMRBE13 0x20000000 /* Control Message Receive Buffer Entry 13 */ #define CMRBE14 0x40000000 /* Control Message Receive Buffer Entry 14 */ #define CMRBE15 0x80000000 /* Control Message Receive Buffer Entry 15 */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/include/asm-blackfin/mach-bf548/defBF54x_base.h:2946:46 #define RFH17 0x2 /* Mailbox 17 Remote Frame Handling Enable */ #define RFH18 0x4 /* Mailbox 18 Remote Frame Handling Enable */ #define RFH19 0x8 /* Mailbox 19 Remote Frame Handling Enable */ #define RFH20 0x10 /* Mailbox 20 Remote Frame Handling Enable */ #define RFH21 0x20 /* Mailbox 21 Remote Frame Handling Enable */ !!#define RFH22 0x40 /* Mailbox 22 Remote Frame Handling Enable */ #define RFH23 0x80 /* Mailbox 23 Remote Frame Handling Enable */ #define RFH24 0x100 /* Mailbox 24 Remote Frame Handling Enable */ #define RFH25 0x200 /* Mailbox 25 Remote Frame Handling Enable */ #define RFH26 0x400 /* Mailbox 26 Remote Frame Handling Enable */ #define RFH27 0x800 /* Mailbox 27 Remote Frame Handling Enable */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/include/asm-ia64/pal.h:39:26 #define PAL_CACHE_INIT 3 /* initialize i/d cache */ #define PAL_CACHE_SUMMARY 4 /* get summary of cache hierarchy */ #define PAL_MEM_ATTRIB 5 /* list supported memory attributes */ #define PAL_PTCE_INFO 6 /* purge TLB info */ #define PAL_VM_INFO 7 /* return supported virtual memory features */ !!#define PAL_VM_SUMMARY 8 /* return summary on supported vm features */ #define PAL_BUS_GET_FEATURES 9 /* return processor bus interface features settings */ #define PAL_BUS_SET_FEATURES 10 /* set processor bus features */ #define PAL_DEBUG_INFO 11 /* get number of debug registers */ #define PAL_FIXED_ADDR 12 /* get fixed component of processors's directed address */ #define PAL_FREQ_BASE 13 /* base frequency of the platform */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/include/asm-mips/dec/ioasic_ints.h:40:30 #define IO_INR_ASC_MERR 17 /* ASC memory read error */ #define IO_INR_LANCE_MERR 16 /* LANCE memory read error */ /* except Maxine */ #define IO_INR_SCC1A_TXDMA 27 /* SCC1A transmit page end */ !!#define IO_INR_SCC1A_TXERR 26 /* SCC1A transmit memory read error */ #define IO_INR_SCC1A_RXDMA 25 /* SCC1A receive half page */ #define IO_INR_SCC1A_RXERR 24 /* SCC1A receive overrun */ #define IO_INR_RES_23 23 /* unused */ #define IO_INR_RES_22 22 /* unused */ #define IO_INR_RES_21 21 /* unused */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/include/asm-sh/hd64465/hd64465.h:43:44 #define HD64465_SMSCR_SCDIST 0x0200 /* Serial Codec Standby */ #define HD64465_SMSCR_PPST 0x0100 /* Parallel Port Standby */ #define HD64465_SMSCR_PC0ST 0x0040 /* PCMCIA0 Standby */ #define HD64465_SMSCR_PC1ST 0x0020 /* PCMCIA1 Standby */ #define HD64465_SMSCR_AFEST 0x0010 /* AFE Standby */ !!#define HD64465_SMSCR_TM0ST 0x0008 /* Timer0 Standby */ #define HD64465_SMSCR_TM1ST 0x0004 /* Timer1 Standby */ #define HD64465_SMSCR_IRDAST 0x0002 /* IRDA Standby */ #define HD64465_SMSCR_KBCST 0x0001 /* Keyboard Controller Standby */ /* Interrupt Controller registers */ ******** @ShortNameExplain @OsInterrupt /home/yyzhou/pad/software-os-src/linux/include/asm-sh/mpc1211/m1543c.h:152:23 #define LSR_DR 0x0100 /* Data Ready */ #define LSR_OE 0x0200 /* Overrun Error */ #define LSR_PE 0x0400 /* Parity Error */ #define LSR_FE 0x0800 /* Framing Error */ !!#define LSR_BI 0x1000 /* Break Interrupt */ #define LSR_THRE 0x2000 /* Transmitter Holding Register Empty */ #define LSR_TEMT 0x4000 /* Transmitter Empty */ #define LSR_FIFOE 0x8000 /* Receiver FIFO error */ /* MODEM Status Register */ ******** @ShortNameExplain @OsRegister /home/yyzhou/pad/software-os-src/linux/include/asm-x86/cpufeature.h:23:35 #define X86_FEATURE_PAE (0*32+ 6) /* Physical Address Extensions */ #define X86_FEATURE_MCE (0*32+ 7) /* Machine Check Architecture */ #define X86_FEATURE_CX8 (0*32+ 8) /* CMPXCHG8 instruction */ #define X86_FEATURE_APIC (0*32+ 9) /* Onboard APIC */ #define X86_FEATURE_SEP (0*32+11) /* SYSENTER/SYSEXIT */ !!#define X86_FEATURE_MTRR (0*32+12) /* Memory Type Range Registers */ #define X86_FEATURE_PGE (0*32+13) /* Page Global Enable */ #define X86_FEATURE_MCA (0*32+14) /* Machine Check Architecture */ #define X86_FEATURE_CMOV (0*32+15) /* CMOV instruction (FCMOVCC and FCOMI too if FPU present) */ #define X86_FEATURE_PAT (0*32+16) /* Page Attribute Table */ #define X86_FEATURE_PSE36 (0*32+17) /* 36-bit PSEs */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/include/linux/fcntl.h:41:34 openat should use the current working directory. */ #define AT_SYMLINK_NOFOLLOW 0x100 /* Do not follow symbolic links. */ #define AT_REMOVEDIR 0x200 /* Remove directory instead of unlinking file. */ !!#define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic links. */ #ifdef __KERNEL__ #ifndef force_o_largefile #define force_o_largefile() (BITS_PER_LONG != 32) ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/include/sound/emu10k1.h:1236:38 #define EMU_DST_ALICE2_EMU32_5 0x0004 /* 16 EMU32 channels to Alice2 +0 to +0xf */ #define EMU_DST_ALICE2_EMU32_6 0x0005 /* 16 EMU32 channels to Alice2 +0 to +0xf */ #define EMU_DST_ALICE2_EMU32_7 0x0006 /* 16 EMU32 channels to Alice2 +0 to +0xf */ #define EMU_DST_ALICE2_EMU32_8 0x0007 /* 16 EMU32 channels to Alice2 +0 to +0xf */ #define EMU_DST_ALICE2_EMU32_9 0x0008 /* 16 EMU32 channels to Alice2 +0 to +0xf */ !!#define EMU_DST_ALICE2_EMU32_A 0x0009 /* 16 EMU32 channels to Alice2 +0 to +0xf */ #define EMU_DST_ALICE2_EMU32_B 0x000a /* 16 EMU32 channels to Alice2 +0 to +0xf */ #define EMU_DST_ALICE2_EMU32_C 0x000b /* 16 EMU32 channels to Alice2 +0 to +0xf */ #define EMU_DST_ALICE2_EMU32_D 0x000c /* 16 EMU32 channels to Alice2 +0 to +0xf */ #define EMU_DST_ALICE2_EMU32_E 0x000d /* 16 EMU32 channels to Alice2 +0 to +0xf */ #define EMU_DST_ALICE2_EMU32_F 0x000e /* 16 EMU32 channels to Alice2 +0 to +0xf */ ******** @ShortNameExplain @Devil @OsRegister /home/yyzhou/pad/software-os-src/linux/include/video/s1d13xxxfb.h:92:37 #define S1DREG_LCD_CUR_BCTL1 0x007A /* LCD Ink/Cursor Blue Color 1 Register */ #define S1DREG_LCD_CUR_GCTL1 0x007B /* LCD Ink/Cursor Green Color 1 Register */ #define S1DREG_LCD_CUR_RCTL1 0x007C /* LCD Ink/Cursor Red Color 1 Register */ #define S1DREG_LCD_CUR_FIFO_HTC 0x007E /* LCD Ink/Cursor FIFO High Threshold Register */ #define S1DREG_CRT_CUR_CTL 0x0080 /* CRT/TV Ink/Cursor Control Register */ !!#define S1DREG_CRT_CUR_START 0x0081 /* CRT/TV Ink/Cursor Start Address Register */ #define S1DREG_CRT_CUR_XPOS0 0x0082 /* CRT/TV Cursor X Position Register 0 */ #define S1DREG_CRT_CUR_XPOS1 0x0083 /* CRT/TV Cursor X Position Register 1 */ #define S1DREG_CRT_CUR_YPOS0 0x0084 /* CRT/TV Cursor Y Position Register 0 */ #define S1DREG_CRT_CUR_YPOS1 0x0085 /* CRT/TV Cursor Y Position Register 1 */ #define S1DREG_CRT_CUR_BCTL0 0x0086 /* CRT/TV Ink/Cursor Blue Color 0 Register */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/sound/oss/waveartist.h:88:23 #define MIX_GAIN_AUX1 1 /* aux1 */ #define MIX_GAIN_AUX2 2 /* aux2 */ #define MIX_GAIN_XMIC 3 /* crossover mic */ #define MIX_GAIN_MIC 4 /* normal mic */ #define MIX_GAIN_PREMIC 5 /* preamp mic */ !!#define MIX_GAIN_OUT 6 /* output */ #define MIX_GAIN_MONO 7 /* mono in */ int wa_sendcmd(unsigned int cmd); int wa_writecmd(unsigned int cmd, unsigned int arg); ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/sound/pci/emu10k1/p17v.h:71:34 #define ADC_MASTER 0x0000000c /*ADC Master Mode Control */ #define ADC_POWER 0x0000000d /*ADC PowerDown Control */ #define ADC_ATTEN_ADCL 0x0000000e /*ADC Attenuation ADCL */ #define ADC_ATTEN_ADCR 0x0000000f /*ADC Attenuation ADCR */ #define ADC_ALC_CTRL1 0x00000010 /*ADC ALC Control 1 */ !!#define ADC_ALC_CTRL2 0x00000011 /*ADC ALC Control 2 */ #define ADC_ALC_CTRL3 0x00000012 /*ADC ALC Control 3 */ #define ADC_NOISE_CTRL 0x00000013 /*ADC Noise Gate Control */ #define ADC_LIMIT_CTRL 0x00000014 /*ADC Limiter Control */ #define ADC_MUX 0x00000015 /*ADC Mux offset */ #if 0 ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/sound/sparc/amd7930.c:101:30 * clears the interrupt and returns a bitmask indicating which * interrupt source(s) require service. */ #define AMR_IR_DTTHRSH 0x01 /* D-channel xmit threshold */ !!#define AMR_IR_DRTHRSH 0x02 /* D-channel recv threshold */ #define AMR_IR_DSRI 0x04 /* D-channel packet status */ #define AMR_IR_DERI 0x08 /* D-channel error */ #define AMR_IR_BBUF 0x10 /* B-channel data xfer */ #define AMR_IR_LSRI 0x20 /* LIU status */ #define AMR_IR_DSR2I 0x40 /* D-channel buffer status */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/nfs/rnode.h:307:29 #define RDIRECTIO 0x400 /* bypass the buffer cache */ #define RLOOKUP 0x800 /* a lookup has been performed */ #define RWRITEATTR 0x1000 /* attributes came from WRITE */ #define RINDNLCPURGE 0x2000 /* in the process of purging DNLC references */ #define RDELMAPLIST 0x4000 /* delmap callers tracking for as callback */ !!#define RINCACHEPURGE 0x8000 /* purging caches due to file size change */ /* * Convert between vnode and rnode */ #define RTOV(rp) ((rp)->r_vnode) ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/sys/lvm/mdvar.h:455:32 #define MD_GBL_EXCL 0x0080 /* admin is open exclusively */ #define MD_OFLG_NULL 0x0000 /* Null flag */ #define MD_OFLG_CONT_ERRS 0x0001 /* Continue on open errors */ #define MD_OFLG_PROBEDEV 0x0002 /* force a simulated open */ !!#define MD_OFLG_ISINIT 0x0004 /* raid initialization */ #define MD_OFLG_FROMIOCTL 0x0008 /* Called from an ioctl handler */ typedef struct md_named_services { ******** @ShortNameExplain @OsInterrupt /home/yyzhou/pad/software-os-src/opensolaris/common/sys/sata/adapters/nv_sata/nv_sata.h:379:32 /* * bit fields for int status and int enable * registers */ !!#define MCP04_INT_PDEV_INT 0x01 /* completion interrupt */ #define MCP04_INT_PDEV_PM 0x02 /* power change */ #define MCP04_INT_PDEV_ADD 0x04 /* hot plug */ #define MCP04_INT_PDEV_REM 0x08 /* hot remove */ #define MCP04_INT_PDEV_HOT MCP04_INT_PDEV_ADD|MCP04_INT_PDEV_REM ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/sys/stream.h:188:31 #define QSYNCSTR 0x00100000 /* Q supports Synchronous STREAMS */ #define QISDRV 0x00200000 /* the Queue is attached to a driver */ /* UNUSED 0x00400000 was QHOT */ /* UNUSED 0x00800000 was QNEXTHOT */ /* UNUSED 0x01000000 was _QNEXTLESS */ !!#define _QINSERTING 0x04000000 /* Private, module is being inserted */ #define _QREMOVING 0x08000000 /* Private, module is being removed */ #define _QASSOCIATED 0x10000000 /* queue is associated with a device */ #define _QDIRECT 0x20000000 /* Private; transport module uses */ /* direct interface to/from sockfs */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/sun4u/sys/sbd_ioctl.h:612:33 #define EOPL_FMEM_ERROR 5019 /* FMEM error */ #define EOPL_SCF_FMEM_CANCEL 5020 /* scf_fmem_cancel error */ #define EOPL_FMEM_XC_TIMEOUT 5021 /* xcall timeout */ #define EOPL_FMEM_COPY_TIMEOUT 5022 /* DR parellel copy timeout */ #define EOPL_FMEM_SCF_BUSY 5023 /* SCF busy */ !!#define EOPL_FMEM_RETRY_OUT 5024 /* SCF IO Retry Error */ #define EOPL_FMEM_TIMEOUT 5025 /* FMEM command timeout */ #define EOPL_FMEM_HW_ERROR 5026 /* Hardware error */ #define EOPL_FMEM_TERMINATE 5027 /* FMEM operation Terminated */ #define EOPL_FMEM_COPY_ERROR 5028 /* Memory copy error */ #define EOPL_FMEM_SCF_ERR 5029 /* SCF error */ ****** place:parameter ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_rtalloc.c:1682:19 * Do whatever I/O and logging is required. */ STATIC int /* error */ xfs_rtmodify_range( xfs_mount_t *mp, /* file system mount point */ !! xfs_trans_t *tp, /* transaction pointer */ xfs_rtblock_t start, /* starting block to modify */ xfs_extlen_t len, /* length of extent to modify */ int val) /* 1 for free, 0 for allocated */ { xfs_rtword_t *b; /* current word in buffer */ ****** place:prototype ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_rtalloc.h:154:0 void xfs_rtprint_summary( struct xfs_mount *mp, /* file system mount structure */ struct xfs_trans *tp); /* transaction pointer */ !!/* * Grow the realtime area of the filesystem. */ int xfs_growfs_rt( struct xfs_mount *mp, /* file system mount structure */ xfs_growfs_rt_t *in); /* user supplied growfs struct */ ****** place:struct ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/io/e1000g/e1000_hw.h:363:0 u16 mss; /* Maximum segment size */ } fields; } tcp_seg_setup; }; !!/* Offload data descriptor */ struct e1000_data_desc { u64 buffer_addr; /* Address of the descriptor's buffer address */ union { u32 data; struct { ****** place:struct_misc ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/sys/filep.h:43:27 /* * These structs should be invisible to the caller of * the user-level routines */ !!typedef struct dev_ident { /* device identifier block */ char *di_desc; int di_dcookie; char di_taken; union { struct fs di_fs; ******** @ShortNameExplain @OsSpecific /home/yyzhou/pad/software-os-src/opensolaris/common/sys/usb/hcd/ehci/ehci.h:167:3 uint32_t ehci_pad[9]; /* Head of the bulk list */ /* Root hub registers */ uint32_t ehci_config_flag; /* Config Flag */ uint32_t ehci_rh_port_status[EHCI_MAX_RH_PORTS]; !! /* Root hub port status and control information */ } ehci_regs_t; /* EHCI Command Register Bits */ #define EHCI_CMD_INTR_THRESHOLD 0x00FF0000 /* Intr threshold control */ #define EHCI_CMD_INTR_SHIFT 16 ****** place:unknown ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/dev/mlx/mlxvar.h:149:31 #define MLX_GEOM_128_32 0 /* geoemetry translation modes */ #define MLX_GEOM_256_63 1 int mlx_state; #define MLX_STATE_INTEN (1<<0) /* interrupts have been enabled */ #define MLX_STATE_SHUTDOWN (1<<1) /* controller is shut down */ !!#define MLX_STATE_OPEN (1<<2) /* control device is open */ #define MLX_STATE_SUSPEND (1<<3) /* controller is suspended */ struct callout_handle mlx_timeout; /* periodic status monitor */ time_t mlx_lastpoll; /* last time_second we polled for status */ u_int16_t mlx_lastevent; /* sequence number of the last event we recorded */ int mlx_currevent; /* sequence number last time we looked */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/net/if.h:310:36 #define ifr_broadaddr ifr_ifru.ifru_broadaddr /* broadcast address */ #define ifr_flags ifr_ifru.ifru_flags[0] /* flags (low 16 bits) */ #define ifr_flagshigh ifr_ifru.ifru_flags[1] /* flags (high 16 bits) */ #define ifr_metric ifr_ifru.ifru_metric /* metric */ #define ifr_mtu ifr_ifru.ifru_mtu /* mtu */ !!#define ifr_phys ifr_ifru.ifru_phys /* physical wire */ #define ifr_media ifr_ifru.ifru_media /* physical media */ #define ifr_data ifr_ifru.ifru_data /* for use by interface */ #define ifr_reqcap ifr_ifru.ifru_cap[0] /* requested capabilities */ #define ifr_curcap ifr_ifru.ifru_cap[1] /* current capabilities */ #define ifr_index ifr_ifru.ifru_index /* interface index */ ******** @ShortNameExplain @StupidComment /home/yyzhou/pad/software-os-src/freebsd/netinet/in.h:221:30 #define IPPROTO_DSTOPTS 60 /* IP6 destination option */ #define IPPROTO_AHIP 61 /* any host internal protocol */ #define IPPROTO_CFTP 62 /* CFTP */ #define IPPROTO_HELLO 63 /* "hello" routing protocol */ #define IPPROTO_SATEXPAK 64 /* SATNET/Backroom EXPAK */ !!#define IPPROTO_KRYPTOLAN 65 /* Kryptolan */ #define IPPROTO_RVD 66 /* Remote Virtual Disk */ #define IPPROTO_IPPC 67 /* Pluribus Packet Core */ #define IPPROTO_ADFS 68 /* Any distributed FS */ #define IPPROTO_SATMON 69 /* Satnet Monitoring */ #define IPPROTO_VISA 70 /* VISA Protocol */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/drivers/net/defxx.h:827:0 /* CHIP SET GROUP => Does not need to be implemented */ } PI_CMD_FDDI_MIB_GET_RSP; !!/* DEC_Ext_MIB_Get Request */ typedef struct { PI_UINT32 cmd_type; } PI_CMD_DEC_EXT_MIB_GET_REQ; ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/linux/drivers/scsi/aic7xxx/aic7xxx.h:775:25 /* * Per SCSI ID Configuration Flags */ uint16_t device_flags[16]; /* words 0-15 */ #define CFXFER 0x0007 /* synchronous transfer rate */ !!#define CFSYNCH 0x0008 /* enable synchronous transfer */ #define CFDISC 0x0010 /* enable disconnection */ #define CFWIDEB 0x0020 /* wide bus device */ #define CFSYNCHISULTRA 0x0040 /* CFSYNCH is an ultra offset (2940AU)*/ #define CFSYNCSINGLE 0x0080 /* Single-Transition signalling */ #define CFSTART 0x0100 /* send start unit SCSI command */ ******** @ShortNameExplain @OsRegister /home/yyzhou/pad/software-os-src/linux/drivers/scsi/ncr53c8xx.h:669:32 /*0b*/ u8 nc_sbcl; /*0c*/ u8 nc_dstat; #define DFE 0x80 /* sta: dma fifo empty */ !! #define MDPE 0x40 /* int: master data parity error */ #define BF 0x20 /* int: script: bus fault */ #define ABRT 0x10 /* int: script: command aborted */ #define SSI 0x08 /* int: script: single step */ #define SIR 0x04 /* int: script: interrupt instruct. */ #define IID 0x01 /* int: script: illegal instruct. */ ******** @ShortNameExplain @Devil /home/yyzhou/pad/software-os-src/linux/include/asm-arm/arch-sa1100/SA-1100.h:1960:26 #define LCSR_IUL 0x00000020 /* Input FIFO Under-run Lower */ /* panel */ #define LCSR_IOU 0x00000040 /* Input FIFO Over-run Upper */ /* panel */ #define LCSR_IUU 0x00000080 /* Input FIFO Under-run Upper */ !! /* panel */ #define LCSR_OOL 0x00000100 /* Output FIFO Over-run Lower */ /* panel */ #define LCSR_OUL 0x00000200 /* Output FIFO Under-run Lower */ /* panel */ #define LCSR_OOU 0x00000400 /* Output FIFO Over-run Upper */ ******** @ShortNameExplain @OsInterrupt /home/yyzhou/pad/software-os-src/linux/include/asm-ia64/sn/shub_mmr.h:225:0 #define SH2_PTC_ADDR_SHFT 4 #define SH2_PTC_ADDR_MASK __IA64_UL_CONST(0x1ffffffffffff000) /* ==================================================================== */ /* Register "SH_RTC1_INT_CONFIG" */ !!/* SHub RTC 1 Interrupt Config Registers */ /* ==================================================================== */ #define SH1_RTC1_INT_CONFIG __IA64_UL_CONST(0x0000000110001480) #define SH2_RTC1_INT_CONFIG __IA64_UL_CONST(0x0000000010001480) #define SH_RTC1_INT_CONFIG_MASK __IA64_UL_CONST(0x0ff3ffffffefffff) ******** @ShortNameExplain @DefineTypeGrouping /home/yyzhou/pad/software-os-src/linux/include/linux/mv643xx.h:238:0 #define MV64340_SDRAM_CALCULATED_ECC 0x144c #define MV64340_SDRAM_ECC_CONTROL 0x1454 #define MV64340_SDRAM_ECC_ERROR_COUNTER 0x1458 /******************************************/ !!/* Controlled Delay Line (CDL) Registers */ /******************************************/ #define MV64340_DFCDL_CONFIG0 0x1480 #define MV64340_DFCDL_CONFIG1 0x1484 #define MV64340_DLL_WRITE 0x1488 ******** @ShortNameExplain @Devil /home/yyzhou/pad/software-os-src/opensolaris/common/io/e1000g/e1000_regs.h:103:31 #define E1000_PBS 0x01008 /* Packet Buffer Size */ #define E1000_EEMNGCTL 0x01010 /* MNG EEprom Control */ #define E1000_EEARBC 0x01024 /* EEPROM Auto Read Bus Control */ #define E1000_FLASHT 0x01028 /* FLASH Timer Register */ #define E1000_EEWR 0x0102C /* EEPROM Write Register - RW */ !!#define E1000_FLSWCTL 0x01030 /* FLASH control register */ #define E1000_FLSWDATA 0x01034 /* FLASH data register */ #define E1000_FLSWCNT 0x01038 /* FLASH Access Counter */ #define E1000_FLOP 0x0103C /* FLASH Opcode Register */ #define E1000_I2CCMD 0x01028 /* SFPI2C Command Register - RW */ #define E1000_I2CPARAMS 0x0102C /* SFPI2C Parameters Register - RW */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/io/rge/rge_hw.h:406:0 #define ANAR_100BASE_TX_HALF 0x0080 #define ANAR_10BASE_T_FULL 0x0040 #define ANAR_10BASE_T_HALF 0x0020 #define ANAR_RESV_BITS 0x501f !!/* * Auto-negotiation link partner ability register */ #define PHY_ANLPAR_REG 0x05 /* * Auto-negotiation expansion register */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/sys/cladm.h:74:35 #define CLUSTER_CONFIGURED 0x0001 /* system is configured as a cluster */ #define CLUSTER_BOOTED 0x0002 /* system is booted as a cluster */ #ifdef _KERNEL #define CLUSTER_INSTALLING 0x0004 /* cluster is being installed */ !!#define CLUSTER_DCS_ENABLED 0x0008 /* cluster device framework enabled */ #endif /* _KERNEL */ /* * CL_CONFIG facility commands. * The CL_GET_NETADDRS and CL_GET_NUM_NETADDRS are contract private interfaces ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/sys/net80211_crypto.h:80:29 #define IEEE80211_MICBUF_SIZE (8+8) /* space for both tx+rx keys */ /* Key Flags */ #define IEEE80211_KEY_XMIT 0x01 /* key used for xmit */ #define IEEE80211_KEY_RECV 0x02 /* key used for recv */ !!#define IEEE80211_KEY_GROUP /* key used for WPA group operation */ \ 0x04 #define IEEE80211_KEY_SWCRYPT 0x10 /* host-based encrypt/decrypt */ #define IEEE80211_KEY_SWMIC 0x20 /* host-based enmic/demic */ #define IEEE80211_KEY_COMMON /* common flags passed in by apps */ \ (IEEE80211_KEY_XMIT | IEEE80211_KEY_RECV | IEEE80211_KEY_GROUP) ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/sys/nxge/nxge_hw.h:957:0 #define DMA_LOG_PAGE_MASK_SHIFT 0 #define DMA_LOG_PAGE_MASK_MASK 0x00000000ffffffffULL !!/* Receive Logical Page Mask */ typedef union _log_page_mask_t { uint64_t value; struct { #if defined(_BIG_ENDIAN) uint32_t hdw; ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/sys/sata/adapters/ahci/ahcivar.h:37:0 #ifdef __cplusplus extern "C" { #endif !!/* Type for argument of event handler */ typedef struct ahci_event_arg { void *ahciea_ctlp; void *ahciea_portp; uint32_t ahciea_event; } ahci_event_arg_t; ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/sys/sunddi.h:147:49 /* ports (the old ttya, b */ /* (,c ,d)) */ #define DDI_NT_SERIAL_DO "ddi_serial:dialout" /* dialout ports */ #define DDI_NT_SERIAL_MB_DO "ddi_serial:dialout,mb" /* dialout for onboard */ /* ports */ !!#define DDI_NT_SERIAL_LOMCON "ddi_serial:lomcon" /* LOMlite2 console port */ /* * *_CHAN disk type devices have channel numbers or target numbers. * (i.e. ipi and scsi devices) */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/sys/videodev2.h:494:39 * ONLY, not by this property! */ uint32_t jpeg_markers; #define V4L2_JPEG_MARKER_DHT (1<<3) /* Define Huffman Tables */ !!#define V4L2_JPEG_MARKER_DQT (1<<4) /* Define Quantization Tables */ #define V4L2_JPEG_MARKER_DRI (1<<5) /* Define Restart Interval */ #define V4L2_JPEG_MARKER_COM (1<<6) /* Comment segment */ /* App segment, driver will allways use APP0 */ #define V4L2_JPEG_MARKER_APP (1<<7) ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/sys/vtrace.h:75:24 #define TR_FAC_TCP 14 /* tcp protocol module */ #define TR_FAC_UDP 15 /* udp protocol module */ #define TR_FAC_IP 16 /* ip protocol module */ #define TR_FAC_ARP 17 /* arp protocol module */ #define TR_FAC_LE 18 /* lance ethernet driver */ !!#define TR_FAC_SCSI 21 /* SCSI */ #define TR_FAC_CALLOUT 24 /* callout table */ #define TR_FAC_SPECFS 29 /* specfs fileystem */ #define TR_FAC_SWAPFS 30 /* swapfs fileystem */ #define TR_FAC_TMPFS 31 /* tmpfs fileystem */ #define TR_FAC_UFS 32 /* UFS */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/intel/sys/old_procfs.h:114:28 /* * These are new with SunOS5.0. */ #define PIOCSET (PIOC|38) /* set process flags */ !!#define PIOCRESET (PIOC|39) /* reset process flags */ #define PIOCUSAGE (PIOC|43) /* get resource usage */ #define PIOCOPENPD (PIOC|44) /* get page data file descriptor */ /* * Lightweight process interfaces. ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/sun4u/sunfire/io/jtag.c:134:23 #define PCI_TYPEB_LEN 104 /* PCI ISP in ring */ #define DSK_TYPE_LEN 2 /* Disk board ring length */ #define IO_TYPE4_LEN 126 /* 2 sysio soc+ */ #define IO_TYPE5_LEN 110 /* 1 sysio 1 ffb soc+ */ !!#define CPU_0_5_LEN 8 /* 0.5 Meg Module ring length */ #define CPU_1_0_LEN 12 /* 1 Meg and 2 Meg ring length */ #define FFB_SNG_LEN 6 /* Single bufferef FFB */ #define FFB_DBL_LEN 18 /* Double buffered FFB */ /* ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/sun4u/sys/opl_olympus_regs.h:222:37 /* * Address of ASI scratch register. ASI 0x4F */ #define OPL_SCRATCHPAD_SAVE_AG1 0x00 /* used for saving global registers */ #define OPL_SCRATCHPAD_SAVE_AG2 0x08 /* used for saving global registers */ !!#define OPL_SCRATCHPAD_SAVE_AG3 0x10 /* used for saving global registers */ #define OPL_SCRATCHPAD_ERRLOG 0x18 /* keeps EIDR, log's PA & err counter */ #define OPL_SCRATCHPAD_UTSBREG4 0x20 #define OPL_SCRATCHPAD_UNUSED5 0x28 #define OPL_SCRATCHPAD_UNUSED6 0x30 #define OPL_SCRATCHPAD_UNUSED7 0x38 ****** place:variable ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/arm/xscale/ixp425/ixp425_qmgr.c:711:36 static void ixpqmgr_intr(void *arg) { struct ixpqmgr_softc *sc = ixpqmgr_sc; !! uint32_t intRegVal; /* Interrupt reg val */ struct qmgrInfo *qi; int priorityTableIndex; /* Priority table index */ int qIndex; /* Current queue being processed */ /* Read the interrupt register */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/cam/cam_debug.h:48:0 CAM_DEBUG_PERIPH = 0x20 /* print out peripheral calls */ } cam_debug_flags; #if defined(CAMDEBUG) && defined(_KERNEL) !!/* Path we want to debug */ extern struct cam_path *cam_dpath; /* Current debug levels set */ extern u_int32_t cam_dflags; /* Printf delay value (to prevent scrolling) */ extern u_int32_t cam_debug_delay; ******** @ShortNameExplain @StupidComment @OsSpecific /home/yyzhou/pad/software-os-src/freebsd/dev/fe/if_fe_cbus.c:170:0 return fe_attach(dev); } !!/* Generic I/O address table */ static bus_addr_t ioaddr_generic[MAXREGISTERS] = { 0x000, 0x001, 0x002, 0x003, 0x004, 0x005, 0x006, 0x007, 0x008, 0x009, 0x00a, 0x00b, 0x00c, 0x00d, 0x00e, 0x00f, 0x010, 0x011, 0x012, 0x013, 0x014, 0x015, 0x016, 0x017, 0x018, 0x019, 0x01a, 0x01b, 0x01c, 0x01d, 0x01e, 0x01f, ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_dir2_block.c:884:19 xfs_dir2_leaf_to_block( xfs_da_args_t *args, /* operation arguments */ xfs_dabuf_t *lbp, /* leaf buffer */ xfs_dabuf_t *dbp) /* data buffer */ { !! __be16 *bestsp; /* leaf bests table */ xfs_dir2_block_t *block; /* block structure */ xfs_dir2_block_tail_t *btp; /* block tail */ xfs_inode_t *dp; /* incore directory inode */ xfs_dir2_data_unused_t *dup; /* unused data entry */ int error; /* error return value */ ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/io/audio/sada/framework/audio_support.c:336:25 */ audiohdl_t audio_sup_register(dev_info_t *dip, audio_sup_reg_data_t *data) { audio_inst_info_t *instp; /* inst info pointer */ !! audio_state_t *statep; /* instance state pointer */ audio_ch_t *chptr; /* channel pointer */ int i; int sup_chs; ATRACE("in audio_sup_register() dip", dip); ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/common/rpc/rpcib.c:3759:29 rdma_stat rib_registermemsync(CONN *conn, caddr_t buf, uint_t buflen, struct mrc *buf_handle, RIB_SYNCMEM_HANDLE *sync_handle) { !! ibt_mr_hdl_t mr_hdl = NULL; /* memory region handle */ ibt_mr_desc_t mr_desc; /* vaddr, lkey, rkey */ rdma_stat status; rib_hca_t *hca = (ctoqp(conn))->hca; /* ******** @ShortNameExplain /home/yyzhou/pad/software-os-src/opensolaris/sun4u/io/pci/pcisch.c:1918:0 {PCIX_CLASS_CPLT, sizeof (pcix_completer_errs)/sizeof (pcix_err_msg_rec_t), pcix_completer_errs }, }; !!/* * Tables for the PCI-X error status messages */ pcix_err_msg_rec_t pcix_stat_errs[] = { {XMITS_PCIX_STAT_SC_DSCRD, "pcix", "discard" }, {XMITS_PCIX_STAT_SC_TTO, "xmits.pbmx", "tato" }, {XMITS_PCIX_STAT_SMMU, "xmits.pbmx", "stmmu" }, {XMITS_PCIX_STAT_SDSTAT, "xmits.pbmx", "stdst" }, *** !no objs!@Name **** @ParamExplanation ****** place:function ******** @ParamExplanation /home/yyzhou/pad/software-os-src/linux/net/ipv6/ip6_tunnel.c:1329:0 dev->flags |= IFF_NOARP; dev->addr_len = sizeof(struct in6_addr); } !!/** * ip6_tnl_dev_init_gen - general initializer for all tunnel devices * @dev: virtual device associated with tunnel **/ static inline void ip6_tnl_dev_init_gen(struct net_device *dev) { struct ip6_tnl *t = netdev_priv(dev); ******** @ParamExplanation @Brief @LotsOfInfo /home/yyzhou/pad/software-os-src/opensolaris/common/io/lvm/raid/raid.c:570:0 { if (!(md_status & MD_GBL_DAEMONS_LIVE)) md_daemon(1, &md_done_daemon); } !!/* * NAME: raid_build_pwslot * DESCRIPTION: builds mr_pw_reserve for the column * PARAMETERS: un is the pointer to the unit structure * colindex is the column to create the structure for */ int raid_build_pw_reservation(mr_unit_t *un, int colindex) { mr_pw_reserve_t *pw; mr_scoreboard_t *sb; **** !no objs!@ReturnExplanation *** @Diagram ****** place:assign ******** @Diagram @LotsOfInfo /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_log_recover.c:576:2 * all the tests below, *head_blk is set to zero at the very end rather * than log_bbnum. In a sense, log_bbnum and zero are the same block * in a circular file. */ if (first_half_cycle == last_half_cycle) { !! /* * In this case we believe that the entire log should have * cycle number last_half_cycle. We need to scan backwards * from the end verifying that there are no holes still * containing last_half_cycle - 1. If we find such a hole, * then the start of that hole will be the new head. The * simple case looks like * x | x ... | x - 1 | x * Another case that fits this picture would be * x | x + 1 | x ... | x * In this case the head really is somewhere at the end of the * log, as one of the latest writes at the beginning was * incomplete. * One more case is * x | x + 1 | x ... | x - 1 | x * This is really the combination of the above two cases, and * the head has to end up at the start of the x-1 hole at the * end of the log. * * In the 256k log case, we will read from the beginning to the * end of the log and search for cycle numbers equal to x-1. * We don't worry about the x+1 blocks that we encounter, * because we know that they cannot be the head since the log * started with x. */ head_blk = log_bbnum; stop_on_cycle = last_half_cycle - 1; } else { /* * In this case we want to find the first block with cycle **** @Font ****** place:initalizer_misc ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/boot_font.c:140:8 0x7c, /* .*****.. */ 0x38, /* ..***... */ 0x10, /* ...*.... */ 0x00, /* ........ */ 0x00, /* ........ */ !! 0x00, /* ........ */ 0x00, /* ........ */ 0x00, /* ........ */ /* \05 */ 0x00, /* ........ */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/boot_font.c:514:8 0x38, /* ..***... */ 0x38, /* ..***... */ 0x38, /* ..***... */ 0x38, /* ..***... */ 0x38, /* ..***... */ !! 0x38, /* ..***... */ 0xfe, /* *******. */ 0x7c, /* .*****.. */ 0x38, /* ..***... */ 0x10, /* ...*.... */ 0x00, /* ........ */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/boot_font.c:942:8 0x00, /* ........ */ 0x00, /* ........ */ 0x18, /* ...**... */ 0x38, /* ..***... */ 0x18, /* ...**... */ !! 0x18, /* ...**... */ 0x18, /* ...**... */ 0x18, /* ...**... */ 0x18, /* ...**... */ 0x18, /* ...**... */ 0x18, /* ...**... */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/boot_font.c:1454:8 0xc6, /* **...**. */ 0xc6, /* **...**. */ 0xc6, /* **...**. */ 0xc6, /* **...**. */ 0x00, /* ........ */ !! 0x00, /* ........ */ 0x00, /* ........ */ 0x00, /* ........ */ /* N */ 0x00, /* ........ */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/boot_font.c:1933:8 0x00, /* ........ */ 0xc0, /* **...... */ 0xc0, /* **...... */ 0xc0, /* **...... */ 0xfc, /* ******.. */ !! 0xc6, /* **...**. */ 0xc6, /* **...**. */ 0xc6, /* **...**. */ 0xc6, /* **...**. */ 0xc6, /* **...**. */ 0xc6, /* **...**. */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/gallant12x22.c:428:13 0x3f, 0xc0, /* ..********.. */ 0x3f, 0xc0, /* ..********.. */ 0x3f, 0xc0, /* ..********.. */ 0x3f, 0xc0, /* ..********.. */ 0x3f, 0xc0, /* ..********.. */ !! 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/gallant12x22.c:905:13 0x19, 0x80, /* ...**..**... */ 0x19, 0x80, /* ...**..**... */ 0x7f, 0xc0, /* .*********.. */ 0x7f, 0xc0, /* .*********.. */ 0x33, 0x00, /* ..**..**.... */ !! 0x66, 0x00, /* .**..**..... */ 0x66, 0x00, /* .**..**..... */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/gallant12x22.c:1519:13 /* 61 0x3d '=' */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ !! 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x7f, 0xe0, /* .**********. */ 0x7f, 0xe0, /* .**********. */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/gallant12x22.c:1883:13 0x30, 0x00, /* ..**........ */ 0x30, 0x00, /* ..**........ */ 0x30, 0x00, /* ..**........ */ 0x30, 0x00, /* ..**........ */ 0x30, 0x00, /* ..**........ */ !! 0x30, 0x00, /* ..**........ */ 0x30, 0x00, /* ..**........ */ 0x30, 0x00, /* ..**........ */ 0x30, 0x00, /* ..**........ */ 0x30, 0x00, /* ..**........ */ 0x30, 0x20, /* ..**......*. */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/gallant12x22.c:2370:13 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ !! 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/gallant12x22.c:2592:13 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ !! 0x00, 0x00, /* ............ */ /* 106 0x6a 'j' */ 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x00, 0xc0, /* ........**.. */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/gallant12x22.c:2772:13 0x00, 0x00, /* ............ */ 0x00, 0x00, /* ............ */ 0x0f, 0x20, /* ....****..*. */ 0x11, 0xe0, /* ...*...****. */ 0x20, 0xe0, /* ..*.....***. */ !! 0x60, 0x60, /* .**......**. */ 0x60, 0x60, /* .**......**. */ 0x60, 0x60, /* .**......**. */ 0x60, 0x60, /* .**......**. */ 0x70, 0x60, /* .***.....**. */ 0x38, 0xe0, /* ..***...***. */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/gallant12x22.c:4317:13 0x22, 0x20, /* ..*...*...*. */ 0x88, 0x80, /* *...*...*... */ 0xdd, 0xd0, /* **.***.***.* */ 0x88, 0x80, /* *...*...*... */ 0x22, 0x20, /* ..*...*...*. */ !! 0x77, 0x70, /* .***.***.*** */ 0x22, 0x20, /* ..*...*...*. */ 0x88, 0x80, /* *...*...*... */ 0xdd, 0xd0, /* **.***.***.* */ /* 178 0xb2 '.' */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/gallant12x22.c:4570:13 0x0d, 0x80, /* ....**.**... */ 0x0d, 0x80, /* ....**.**... */ 0x0d, 0x80, /* ....**.**... */ 0x0d, 0x80, /* ....**.**... */ 0x0d, 0x80, /* ....**.**... */ !! 0xfd, 0x80, /* ******.**... */ 0xfd, 0x80, /* ******.**... */ 0x01, 0x80, /* .......**... */ 0xff, 0x80, /* *********... */ 0xff, 0x80, /* *********... */ 0x00, 0x00, /* ............ */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/gallant12x22.c:5086:13 0x06, 0x00, /* .....**..... */ 0x06, 0x00, /* .....**..... */ 0x06, 0x00, /* .....**..... */ 0x06, 0x00, /* .....**..... */ 0x06, 0x00, /* .....**..... */ !! 0x06, 0x00, /* .....**..... */ 0x06, 0x00, /* .....**..... */ 0x06, 0x00, /* .....**..... */ /* 210 0xd2 '.' */ 0x00, 0x00, /* ............ */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/fb/gallant12x22.c:5655:13 0x3f, 0xc0, /* ..********.. */ 0x3f, 0xc0, /* ..********.. */ 0x3f, 0xc0, /* ..********.. */ 0x3f, 0xc0, /* ..********.. */ 0x3f, 0xc0, /* ..********.. */ !! 0x3f, 0xc0, /* ..********.. */ 0x3f, 0xc0, /* ..********.. */ 0x3f, 0xc0, /* ..********.. */ 0x3f, 0xc0, /* ..********.. */ 0x3f, 0xc0, /* ..********.. */ 0x00, 0x00, /* ............ */ ******** @Font /home/yyzhou/pad/software-os-src/freebsd/dev/syscons/scgfbrndr.c:110:13 #endif /* SC_NO_MODE_CHANGE */ #ifndef SC_NO_CUTPASTE #ifdef __sparc64__ static u_char mouse_pointer[22 * 2] = { !! 0x00, 0x00, /* ............ */ 0x80, 0x00, /* *........... */ 0xc0, 0x00, /* **.......... */ 0xe0, 0x00, /* ***......... */ 0xf0, 0x00, /* ****........ */ 0xf8, 0x00, /* *****....... */ ******** @Font /home/yyzhou/pad/software-os-src/linux/drivers/video/console/font_10x18.c:5034:13 0x00, 0x00, /* 0000000000 */ 0x00, 0x00, /* 0000000000 */ /* 251 0xfb '.' */ 0x00, 0x00, /* 0000000000 */ !! 0x00, 0x00, /* 0000000000 */ 0x0f, 0xc0, /* 0000111111 */ 0x0f, 0xc0, /* 0000111111 */ 0x0c, 0x00, /* 0000110000 */ 0x0c, 0x00, /* 0000110000 */ 0x0c, 0x00, /* 0000110000 */ ******** @Font /home/yyzhou/pad/software-os-src/linux/drivers/video/console/font_6x11.c:443:7 0x00, /* 00000000 */ 0x00, /* 00000000 */ 0x00, /* 00000000 */ /* 33 0x21 '!' */ !! 0x00, /* 00000000 */ 0x10, /* 000 0000 */ 0x10, /* 000 0000 */ 0x10, /* 000 0000 */ 0x10, /* 000 0000 */ 0x10, /* 000 0000 */ ******** @Font /home/yyzhou/pad/software-os-src/linux/drivers/video/console/font_7x14.c:2241:7 /* 139 0x8b '' */ 0x00, /* 0000000 */ 0x6c, /* 0110110 */ 0x00, /* 0000000 */ 0x00, /* 0000000 */ !! 0x38, /* 0011100 */ 0x18, /* 0001100 */ 0x18, /* 0001100 */ 0x18, /* 0001100 */ 0x18, /* 0001100 */ 0x18, /* 0001100 */ ******** @Font /home/yyzhou/pad/software-os-src/linux/drivers/video/console/font_8x16.c:2124:7 /* 117 0x75 'u' */ 0x00, /* 00000000 */ 0x00, /* 00000000 */ 0x00, /* 00000000 */ !! 0x00, /* 00000000 */ 0x00, /* 00000000 */ 0xcc, /* 11001100 */ 0xcc, /* 11001100 */ 0xcc, /* 11001100 */ 0xcc, /* 11001100 */ ******** @Font /home/yyzhou/pad/software-os-src/linux/drivers/video/console/font_8x8.c:78:7 /* 6 0x06 '^F' */ 0x10, /* 00010000 */ 0x38, /* 00111000 */ 0x7c, /* 01111100 */ 0xfe, /* 11111110 */ !! 0xfe, /* 11111110 */ 0x7c, /* 01111100 */ 0x10, /* 00010000 */ 0x38, /* 00111000 */ /* 7 0x07 '^G' */ ******** @Font /home/yyzhou/pad/software-os-src/linux/drivers/video/console/font_8x8.c:1044:7 0x60, /* 01100000 */ 0xf0, /* 11110000 */ 0x00, /* 00000000 */ /* 103 0x67 'g' */ !! 0x00, /* 00000000 */ 0x00, /* 00000000 */ 0x76, /* 01110110 */ 0xcc, /* 11001100 */ 0xcc, /* 11001100 */ 0x7c, /* 01111100 */ ******** @Font /home/yyzhou/pad/software-os-src/linux/drivers/video/console/font_mini_4x6.c:1915:1 0xee, /*= [*** ] */ 0xee, /*= [*** ] */ 0xee, /*= [*** ] */ 0xee, /*= [*** ] */ 0x00, /*= [ ] */ !! /*}*/ /*{*/ /* Char 227: */ 0xee, /*= [*** ] */ 0xee, /*= [*** ] */ 0xee, /*= [*** ] */ 0xee, /*= [*** ] */ ******** @Font /home/yyzhou/pad/software-os-src/linux/drivers/video/console/font_sun12x22.c:2092:13 0x04, 0x00, /* 000001000000 */ 0x00, 0x00, /* 000000000000 */ 0x00, 0x00, /* 000000000000 */ 0x00, 0x00, /* 000000000000 */ 0x00, 0x00, /* 000000000000 */ !! 0x00, 0x00, /* 000000000000 */ 0x00, 0x00, /* 000000000000 */ /* 87 0x57 'W' */ 0x00, 0x00, /* 000000000000 */ 0x00, 0x00, /* 000000000000 */ ******** @Font /home/yyzhou/pad/software-os-src/linux/drivers/video/console/font_sun12x22.c:2564:13 0x00, 0xc0, /* 000000001100 */ 0x00, 0xc0, /* 000000001100 */ 0x00, 0xc0, /* 000000001100 */ 0x00, 0xc0, /* 000000001100 */ 0x00, 0xc0, /* 000000001100 */ !! 0x00, 0xc0, /* 000000001100 */ 0x00, 0xc0, /* 000000001100 */ 0x00, 0xc0, /* 000000001100 */ 0x00, 0xc0, /* 000000001100 */ 0x20, 0xc0, /* 001000001100 */ 0x30, 0xc0, /* 001100001100 */ ******** @Font /home/yyzhou/pad/software-os-src/opensolaris/common/io/12x22.c:784:12 0x00, 0x00, /* */ 0x00, 0x00, /* */ 0x0c, 0x00, /* XX */ 0x1e, 0x00, /* XXXX */ 0x1e, 0x00, /* XXXX */ !!0x0c, 0x00, /* XX */ 0x00, 0x00, /* */ 0x00, 0x00, /* */ 0x00, 0x00, /* */ 0x00, 0x00, /* */ 0x00, 0x00, /* */ ******** @Font /home/yyzhou/pad/software-os-src/opensolaris/common/io/12x22.c:1454:12 0x06, 0x00, /* XX */ 0x06, 0x00, /* XX */ 0x06, 0x00, /* XX */ 0x06, 0x00, /* XX */ 0x06, 0x00, /* XX */ !!0x06, 0x00, /* XX */ 0x06, 0x00, /* XX */ 0x06, 0x00, /* XX */ 0x06, 0x00, /* XX */ 0x06, 0x00, /* XX */ 0x04, 0x00, /* X */ ******** @Font /home/yyzhou/pad/software-os-src/opensolaris/common/io/12x22.c:2601:12 0x00, 0x00, /* */ 0x00, 0x00, /* */ 0x00, 0x00, /* */ 0x7f, 0xe0, /* XXXXXXXXXX */ 0x60, 0xe0, /* XX XXX */ !!0x41, 0xc0, /* X XXX */ 0x03, 0x80, /* XXX */ 0x07, 0x00, /* XXX */ 0x0e, 0x00, /* XXX */ 0x1c, 0x00, /* XXX */ 0x38, 0x20, /* XXX X */ ******** @Font /home/yyzhou/pad/software-os-src/opensolaris/common/io/12x22.c:4219:12 0x30, 0x00, /* XX */ 0x30, 0x00, /* XX */ 0x78, 0x00, /* XXXX */ 0x00, 0x00, /* */ 0x00, 0x00, /* */ !!0x00, 0x00, /* */ 0x00, 0x00, /* */ 0x00, 0x00, /* */ 0x00, 0x00, /* */ /* 0xdf */ ******** @Font /home/yyzhou/pad/software-os-src/opensolaris/common/io/12x22.c:4678:12 0x00, 0x00, /* */ 0x00, 0x00, /* */ 0x00, 0x00, /* */ 0x00, 0x00, /* */ 0x00, 0x00, /* */ !!0x00, 0x00, /* */ /* 0xf2 */ 0x00, 0x00, /* */ 0x00, 0x00, /* */ 0x0c, 0x00, /* XX */ ******** @Font /home/yyzhou/pad/software-os-src/opensolaris/common/io/6x10.c:763:6 0x00, /* */ 0x40, /* X */ 0x40, /* X */ 0x40, /* X */ 0x40, /* X */ !!0x40, /* X */ 0x40, /* X */ 0x7c, /* XXXXX */ 0x00, /* */ 0x00, /* */ ******** @Font /home/yyzhou/pad/software-os-src/opensolaris/common/io/6x10.c:1875:6 0x00, /* */ 0x00, /* */ /* FONTDATA + 0x0604 */ 0x08, /* X */ !!0x7c, /* XXXXX */ 0x40, /* X */ 0x40, /* X */ 0x78, /* XXXX */ 0x40, /* X */ 0x40, /* X */ ******** @Font /home/yyzhou/pad/software-os-src/opensolaris/common/io/7x14.c:1057:6 0x3c, /* XXXX */ 0x42, /* X X */ 0x42, /* X X */ 0x42, /* X X */ 0x42, /* X X */ !!0x42, /* X X */ 0x42, /* X X */ 0x42, /* X X */ 0x42, /* X X */ 0x3c, /* XXXX */ 0x00, /* */ ******** @Font /home/yyzhou/pad/software-os-src/opensolaris/common/io/7x14.c:1361:6 0x40, /* X */ 0x40, /* X */ 0x40, /* X */ 0x5c, /* X XXX */ 0x62, /* XX X */ !!0x42, /* X X */ 0x42, /* X X */ 0x42, /* X X */ 0x62, /* XX X */ 0x5c, /* X XXX */ 0x00, /* */ ******** @Font /home/yyzhou/pad/software-os-src/opensolaris/common/io/7x14.c:1762:6 0x08, /* X */ 0x08, /* X */ 0x08, /* X */ 0x08, /* X */ 0x10, /* X */ !!0x08, /* X */ 0x08, /* X */ 0x08, /* X */ 0x08, /* X */ 0x08, /* X */ 0x06, /* XX */ ******** @Font /home/yyzhou/pad/software-os-src/opensolaris/common/io/7x14.c:2986:6 0x3c, /* XXXX */ 0x08, /* X */ 0x10, /* X */ /* 0xe8 */ !!0x00, /* */ 0x20, /* X */ 0x10, /* X */ 0x08, /* X */ 0x00, /* */ 0x3c, /* XXXX */ **** @DiagramTransitionTable ****** place:end_else ******** @DiagramTransitionTable /home/yyzhou/pad/software-os-src/freebsd/netinet6/nd6.c:1744:13 if (!is_newentry) { if ((!olladdr && lladdr != NULL) || /* (3) */ (olladdr && lladdr != NULL && llchange)) { /* (5) */ do_update = 1; newstate = ND6_LLINFO_STALE; !! } else /* (1-2,4) */ do_update = 0; } else { do_update = 1; if (lladdr == NULL) /* (6) */ newstate = ND6_LLINFO_NOSTATE; *** @Design ****** place:assign ******** @Design /home/yyzhou/pad/software-os-src/opensolaris/i86pc/os/cpuid.c:1434:3 * check cpi_mwait.support which was set in cpuid_pass1 */ if (!(cpi->cpi_mwait.support & MWAIT_SUPPORT)) break; !! /* * Protect ourself from insane mwait line size. * Workaround for incomplete hardware emulator(s). */ mwait_size = (size_t)MWAIT_SIZE_MAX(cpi); if (mwait_size < sizeof (uint32_t) || !ISP2(mwait_size)) { #if DEBUG cmn_err(CE_NOTE, "Cannot handle cpu %d mwait " ****** place:function_misc ******** @Design /home/yyzhou/pad/software-os-src/opensolaris/common/io/lvm/stripe/stripe_ioctl.c:501:1 } /* get the address of the new unit */ new_un = (ms_unit_t *)mddb_getrecaddr(ms_recid); !! /* * It is okay that we muck with the new unit here, * since no one else will know about the unit struct * until we commit it. If we crash, the record will * be automatically purged, since we haven't * committed it yet and the old unit struct will be found. */ /* copy in the user's unit struct */ err = ddi_copyin((caddr_t)(uintptr_t)mgp->mdp, (caddr_t)new_un, (size_t)mgp->size, mode); if (err) { ****** place:if ******** @Design @CondRelated @LotsOfInfo /home/yyzhou/pad/software-os-src/linux/fs/jfs/jfs_dtree.c:1432:1 /* init freelist */ fsi = rp->header.stblindex + stblsize; rp->header.freelist = fsi; rp->header.freecnt = rp->header.maxslot - fsi; !! /* * sequential append at tail: append without split * * If splitting the last page on a level because of appending * a entry to it (skip is maxentry), it's likely that the access is * sequential. Adding an empty page on the side of the level is less * work and can push the fill factor much higher than normal. * If we're wrong it's no big deal, we'll just do the split the right * way next time. * (It may look like it's equally easy to do a similar hack for * reverse sorted data, that is, split the tree left, * but it's not. Be my guest.) */ if (nextbn == 0 && split->index == sp->header.nextindex) { /* linelock header + stbl (first slot) of new page */ rlv = & rdtlck->lv[rdtlck->index]; rlv->offset = 0; rlv->length = 2; ******** @Design /home/yyzhou/pad/software-os-src/opensolaris/common/os/flock.c:1469:1 } } recompute: !! /* * For unlock we don't send the 'request' to for recomputing * dependencies because no lock will add an edge to this. */ if (lock_effect == FLK_UNLOCK) { topology[nvertex-1] = NULL; nvertex--; } *** !no objs!@Limitation *** !no objs!@Warning *** !no objs!@Example *** !no objs!@FunctionKind *** !no objs!@Test *** @ConditionExplanation ****** place:funcall ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/freebsd/contrib/dev/acpica/compiler/asloperands.c:385:16 * Examine the specified offset in relation to the * current offset counter. */ if (NewBitOffset < CurrentBitOffset) { !! /* * Not allowed to specify a backwards offset! * Issue error and ignore this node. */ AslError (ASL_ERROR, ASL_MSG_BACKWARDS_OFFSET, PkgLengthNode, NULL); Next->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; PkgLengthNode->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; } ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/freebsd/dev/acpica/acpi_acad.c:107:4 sc = device_get_softc(dev); h = acpi_get_handle(dev); newstatus = -1; acpi_GetInteger(h, "_PSR", &newstatus); !! /* If status is valid and has changed, notify the system. */ ACPI_SERIAL_BEGIN(acad); if (newstatus != -1 && sc->status != newstatus) { sc->status = newstatus; power_profile_set_state(newstatus ? POWER_PROFILE_PERFORMANCE : POWER_PROFILE_ECONOMY); ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/fs/doorfs/door_sys.c:2273:2 rlen = roundup(data_size + ds, PAGESIZE); as_rangelock(as); map_addr_proc(&addr, rlen, 0, 1, as->a_userlimit, ttoproc(caller), 0); if (addr == NULL || as_map(as, addr, rlen, segvn_create, zfod_argsp) != 0) { !! /* No virtual memory available, or anon mapping failed */ as_rangeunlock(as); if (!ct->d_kernel && desc_num > 0) { int error = door_release_fds(desc_ptr, desc_num); if (error) return (error); ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/io/ib/clients/rds/rdsib_cm.c:380:3 * other becomes passive. */ RDS_DPRINTF2("rds_handle_cm_req", "EP(%p) Peer-peer connection handling", ep); if (lgid.gid_guid > rgid.gid_guid) { !! /* this node is active so reject this request */ mutex_exit(&ep->ep_lock); RDS_DPRINTF2(LABEL, "SP(%p) EP(%p): " "Rejecting passive in favor of active", sp, ep); return (IBT_CM_REJECT); } else { ****** place:function_misc ******** @ConditionExplanation @StupidComment /home/yyzhou/pad/software-os-src/freebsd/contrib/dev/acpica/compiler/aslanalyze.c:1201:20 Next = Op->Asl.Child->Asl.Next; if ((Next->Asl.ParseOpcode != PARSEOP_INTEGER) && (Next->Asl.ParseOpcode != PARSEOP_STRING_LITERAL)) { !! /* _HID must be a string or an integer */ AslError (ASL_ERROR, ASL_MSG_RESERVED_OPERAND_TYPE, Next, "String or Integer"); } ****** place:if ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/freebsd/contrib/dev/acpica/compiler/aslfold.c:295:8 * reduced. It can't. No error */ return (AE_TYPE); } !! /* * This is an expression that MUST reduce to a constant, and it * can't be reduced. This is an error */ if (Op->Asl.CompileFlags & NODE_IS_TARGET) { AslError (ASL_ERROR, ASL_MSG_INVALID_TARGET, Op, Op->Asl.ParseOpName); } ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/freebsd/contrib/dev/acpica/dmresrc.c:464:4 UINT8 *Aml; UINT8 *EndAml; ACPI_SIZE Length; !! /* This op must be a buffer */ if (Op->Common.AmlOpcode != AML_BUFFER_OP) { return (AE_TYPE); } ******** @ConditionExplanation @OsMemory /home/yyzhou/pad/software-os-src/freebsd/dev/em/e1000_nvm.c:388:1 u16 word_in; u8 read_opcode = NVM_READ_OPCODE_SPI; DEBUGFUNC("e1000_read_nvm_spi"); !! /* * A check for invalid values: offset too large, too many words, * and not enough words. */ if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || (words == 0)) { DEBUGOUT("nvm parameter(s) out of bounds\n"); ret_val = -E1000_ERR_NVM; goto out; ******** @ConditionExplanation @Brief @CondRelated /home/yyzhou/pad/software-os-src/freebsd/net/if_spppsubr.c:2264:1 if (sp->hisauth.proto != 0) sp->lcp.opts |= (1 << LCP_OPT_AUTH_PROTO); else sp->lcp.opts &= ~(1 << LCP_OPT_AUTH_PROTO); sp->pp_flags &= ~PP_NEEDAUTH; !! /* * If this interface is passive or dial-on-demand, and we are * still in Initial state, it means we've got an incoming * call. Activate the interface. */ if ((ifp->if_flags & (IFF_AUTO | IFF_PASSIVE)) != 0) { if (debug) log(LOG_DEBUG, SPP_FMT "Up event", SPP_ARGS(ifp)); ifp->if_drv_flags |= IFF_DRV_RUNNING; ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/freebsd/opencrypto/cryptosoft.c:93:2 if (crd->crd_flags & CRD_F_IV_EXPLICIT) bcopy(crd->crd_iv, iv, blks); else arc4rand(iv, blks, 0); !! /* Do we need to write the IV */ if (!(crd->crd_flags & CRD_F_IV_PRESENT)) crypto_copyback(flags, buf, crd->crd_inject, blks, iv); } else { /* Decryption */ /* IV explicitly provided ? */ ******** @ConditionExplanation @CondRelated /home/yyzhou/pad/software-os-src/linux/kernel/auditfilter.c:1350:1 LIST_HEAD(inotify_list); int h, ret = 0; #ifdef CONFIG_AUDITSYSCALL int dont_count = 0; !! /* If either of these, don't count towards total */ if (entry->rule.listnr == AUDIT_FILTER_USER || entry->rule.listnr == AUDIT_FILTER_TYPE) dont_count = 1; #endif ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/linux/net/mac80211/rx.c:1981:1 tid_agg_rx = &(sta->ampdu_mlme.tid_rx[tid]); if (tid_agg_rx->state != HT_AGG_STATE_OPERATIONAL) goto end_reorder; !! /* null data frames are excluded */ if (unlikely(fc & IEEE80211_STYPE_NULLFUNC)) goto end_reorder; /* new un-ordered ampdu frame - process it */ ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/fs/nfs/nfs4_vfsops.c:2977:3 } else if (nfs4_rpc_retry_error(n4ep->error) || n4ep->stat == NFS4ERR_RESOURCE || n4ep->stat == NFS4ERR_STALE_CLIENTID) { retry = TRUE; !! /* * Always retry if in recovery or once had * contact with the server (but now it's * overloaded). */ if (recovery == TRUE || n4ep->error == ETIMEDOUT || n4ep->error == ECONNRESET) num_retries = 0; } else if (retry_inuse && n4ep->error == 0 && ******** @ConditionExplanation @StupidComment /home/yyzhou/pad/software-os-src/opensolaris/common/fs/ufs/ufs_subr.c:972:3 if (fs->fs_clean != FSLOG) /* * file system has not gone dirty since the scan began */ if (fs->fs_reclaim & FS_CHECKCLEAN) !! /* * nothing dirty was found in the buffer or inode cache */ if ((isbusy == 0) && (isreclaim == 0) && (fs->fs_clean != FSSTABLE)) { fs->fs_clean = FSSTABLE; updatesb = 1; } ******** @ConditionExplanation @StupidComment /home/yyzhou/pad/software-os-src/opensolaris/common/fs/zfs/spa.c:2771:1 ASSERT(cvd->vdev_isspare); spa_spare_remove(cvd); unspare_guid = cvd->vdev_guid; } !! /* * If the parent mirror/replacing vdev only has one child, * the parent is no longer needed. Remove it from the tree. */ if (pvd->vdev_children == 1) vdev_remove_parent(cvd); /* * We don't set tvd until now because the parent we just removed ******** @ConditionExplanation @StupidComment /home/yyzhou/pad/software-os-src/opensolaris/common/fs/zfs/spa.c:3473:2 /* * If there's a scrub or resilver already in progress, stop it. */ while (spa->spa_scrub_thread != NULL) { !! /* * Don't stop a resilver unless forced. */ if (spa->spa_scrub_type == POOL_SCRUB_RESILVER && !force) { mutex_exit(&spa->spa_scrub_lock); return (EBUSY); } spa->spa_scrub_stop = 1; ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/fs/zfs/zap.c:683:2 zap_put_leaf(l); if (leaffull || zap->zap_f.zap_phys->zap_ptrtbl.zt_nextblk) { int err; !! /* * We are in the middle of growing the pointer table, or * this leaf will soon make us grow it. */ if (zap_tryupgradedir(zap, tx) == 0) { objset_t *os = zap->zap_objset; uint64_t zapobj = zap->zap_object; zap_unlockdir(zap); ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/io/1394/adapters/hci1394_async.c:1400:2 (uint8_t *)&cmd->cmd_u.q.quadlet_data, (uint8_t *)&pkt->q4, IEEE1394_QUADLET); break; case IEEE1394_TCODE_READ_BLOCK_RESP: !! /* make sure the ATREQ was a block read */ if (cmd->cmd_type != CMD1394_ASYNCH_RD_BLOCK) { (*hcicmd)->ac_status = H1394_CMD_EDEVICE_ERROR; TNF_PROBE_2(hci1394_async_arresp_lockresp_fail, HCI1394_TNF_HAL_STACK, "", tnf_string, errmsg, "Invalid response sent for brd request", tnf_uint, ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/io/ecpp.c:2854:1 return (FAILURE); } pp->dma_cancelled = FALSE; !! /* pport must be in PIO mode */ if (ecr_write(pp, ECR_mode_001 | ECPP_INTR_MASK | ECPP_INTR_SRV) != SUCCESS) { ecpp_error(pp->dip, "ecpp_prep_pio_xfer: failed w/ECR.\n"); } ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/opensolaris/sun4u/sunfire/io/ac_test.c:149:23 mem_info->ostate != SYSC_CFGA_OSTATE_UNCONFIGURED) { fhc_bdlist_unlock(); AC_ERR_SET(pkt, AC_ERR_BD_STATE); return (EINVAL); } !! if (mem_info->busy) { /* oops, testing? */ /* * find the test entry */ ASSERT(test_mutex_initialized); mutex_enter(&test_mutex); ****** place:unknown ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/linux/drivers/scsi/ncr53c8xx.c:867:0 #ifdef SCSI_NCR_CCB_DONE_SUPPORT #define MAX_DONE 24 #define CCB_DONE_EMPTY 0xffffffffUL !!/* All 32 bit architectures */ #if BITS_PER_LONG == 32 #define CCB_DONE_VALID(cp) (((u_long) cp) != CCB_DONE_EMPTY) /* All > 32 bit (64 bit) architectures regardless endian-ness */ #else ******** @ConditionExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/fs/cachefs/cachefs_subr.c:1276:1 if (C_TO_FSCACHE(cp)->fs_cache->c_flags & (CACHE_NOFILL | CACHE_NOCACHE)) { goto out; } !! /* if there is a front file */ if (cp->c_metadata.md_flags & MD_FILE) { if (fgp->fg_dirvp == NULL) goto out; /* get the front file vp if necessary */ *** @ElseExplanation ****** place:assign ******** @ElseExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/io/scsi/targets/st.c:10800:4 severity = SCSI_ERR_RETRYABLE; } else { if (rval != DEVICE_RESET) { rval = COMMAND_DONE_ERROR; } else { !! /* * Returning DEVICE_RESET will call * error recovery. */ severity = SCSI_ERR_INFO; break; /* don't set position invalid */ } /* * Check if it is an Unexpected Unit Attention. ****** place:end_else ******** @ElseExplanation /home/yyzhou/pad/software-os-src/linux/drivers/isdn/hisax/enternow_pci.c:280:6 s0val = 0x04; if (inl(cs->hw.njet.base + NETJET_DMA_READ_ADR) < inl(cs->hw.njet.base + NETJET_DMA_READ_IRQ)) /* the 2nd read page is free */ s0val = s0val | 0x02; !! else /* the 1st read page is free */ s0val = s0val | 0x01; if (s0val != cs->hw.njet.last_is0) /* we have a DMA interrupt */ { if (test_and_set_bit(FLG_LOCK_ATOMIC, &cs->HW_Flags)) { spin_unlock_irqrestore(&cs->lock, flags); ******** @ElseExplanation /home/yyzhou/pad/software-os-src/linux/drivers/isdn/hisax/netjet.c:622:8 return; if (bcs->mode == L1_MODE_HDLC) { // it's 64k if (make_raw_data(bcs)) return; } !! else { // it's 56k if (make_raw_data_56k(bcs)) return; }; if (bcs->cs->debug & L1_DEB_HSCX) debugl1(bcs->cs,"tiger fill_dma2: c%d %4x", bcs->channel, ****** place:funcall ******** @ElseExplanation /home/yyzhou/pad/software-os-src/linux/drivers/media/video/usbvision/usbvision-core.c:1494:3 frame); } usbvision_parse_data(usbvision); } else { !! /*If we don't have a frame we're current working on, complain */ PDEBUG(DBG_IRQ, "received data, but no one needs it"); scratch_reset(usbvision); } } ****** place:function_misc ******** @ElseExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/os/lgrp.c:4289:3 prev = AVL_PREV(tree, seg); next = AVL_NEXT(tree, seg); (void) lgrp_shm_policy_concat(tree, seg, next); (void) lgrp_shm_policy_concat(tree, prev, seg); } else { !! /* * Specified offset and length only apply to part of * existing segment */ /* * New segment starts in middle of old one, so split * new one off near beginning of old one */ ****** place:if ******** @ElseExplanation @AbuseInt /home/yyzhou/pad/software-os-src/linux/drivers/net/bonding/bond_main.c:2286:4 "ms for interface %s.\n", bond->dev->name, (bond->params.updelay - slave->delay) * bond->params.miimon, slave_dev->name); } else { !! /* link stays up */ if (slave->delay == 0) { if (!have_locks) return 1; /* now the link has been up for long time enough */ *** @ClearResetExplanation ****** place:assignfield ******** @ClearResetExplanation /home/yyzhou/pad/software-os-src/linux/drivers/scsi/initio.c:2589:1 cblk->senseptr = cpu_to_le32((u32)dma_addr); cblk->senselen = cpu_to_le32(SENSE_SIZE); cmnd->SCp.ptr = (char *)(unsigned long)dma_addr; cblk->cdblen = cmnd->cmd_len; !! /* Clear the returned status */ cblk->hastat = 0; cblk->tastat = 0; /* Command the command */ memcpy(&cblk->cdb[0], &cmnd->cmnd, cmnd->cmd_len); ****** place:funcall ******** @ClearResetExplanation @OsSpecific /home/yyzhou/pad/software-os-src/linux/sound/core/seq/seq_timer.c:87:1 snd_printd("oops: snd_seq_timer_delete() called with NULL timer\n"); return; } t->running = 0; !! /* reset time */ snd_seq_timer_stop(t); snd_seq_timer_reset(t); kfree(t); } ****** place:function_misc ******** @ClearResetExplanation /home/yyzhou/pad/software-os-src/freebsd/contrib/dev/acpica/compiler/aslcompile.c:363:16 return; } if (Byte != '*') { !! /* Reset */ ClosingComment = FALSE; } } else if (Byte == '*') ****** place:unknown ******** @ClearResetExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip_impl.h:174:2 DB_CKSUMFLAGS(mp) = 0; \ if (((ipver) == IPV4_VERSION && \ ((hck_flags) & HCKSUM_INET_FULL_V4)) || \ ((ipver) == IPV6_VERSION && \ ((hck_flags) & HCKSUM_INET_FULL_V6))) { \ !! /* \ * Hardware calculates pseudo-header, header and the \ * payload checksums, so clear the checksum field in \ * the protocol header. \ */ \ *(up) = 0; \ DB_CKSUMFLAGS(mp) |= HCK_FULLCKSUM; \ } else if ((hck_flags) & HCKSUM_INET_PARTIAL) { \ /* \ * Partial checksum offload has been enabled. Fill \ *** @BitExplanation ****** place:assign ******** @BitExplanation /home/yyzhou/pad/software-os-src/opensolaris/sun4v/io/ldc.c:1561:1 if (ldcp->mode != LDC_MODE_RAW) pkt->seqid = LDC_INIT_SEQID; ldcp->last_msg_rcd = msg->seqid; !! /* initiate the send by calling into HV and set the new tail */ tx_tail = (tx_tail + LDC_PACKET_SIZE) % (ldcp->tx_q_entries << LDC_PACKET_SHIFT); rv = i_ldc_set_tx_tail(ldcp, tx_tail); if (rv == 0) { ****** place:assignop_logic ******** @BitExplanation /home/yyzhou/pad/software-os-src/linux/drivers/usb/gadget/amd5536udc.c:753:1 ep->num, req->td_data); /* set buffer pointer */ req->td_data->bufptr = req->req.dma; !! /* set last bit */ req->td_data->status |= AMD_BIT(UDC_DMA_IN_STS_L); /* build/re-init dma chain if maxpkt scatter mode, not for EP0 */ if (use_dma_ppb) { ******** @BitExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/io/ttcompat.c:953:2 */ iocp->ioc_cmd = TCSETS; goto senddown; case TIOCHPCL: !! /* * Replace the data that came up with the updated data. */ ((struct termios *)datap->b_rptr)->c_cflag |= HUPCL; /* * Send it back down as a TCSETS. */ ******** @BitExplanation @OsMemory /home/yyzhou/pad/software-os-src/opensolaris/common/os/watchpoint.c:270:4 /* cannot have exec-only protection */ prot |= PROT_READ|PROT_EXEC; if (pwp->wp_kmap[R] + pwp->wp_umap[R]) prot |= PROT_READ; if (pwp->wp_kmap[W] + pwp->wp_umap[W]) !! /* cannot have write-only protection */ prot |= PROT_READ|PROT_WRITE; #if 0 /* damned broken mmu feature! */ if (sum(pwp->wp_umap) == 0) prot &= ~PROT_USER; #endif ****** place:assignop_muldiv ******** @BitExplanation /home/yyzhou/pad/software-os-src/freebsd/dev/arcmsr/arcmsr.c:2352:41 goto polling_ccb_retry; } } phbbmu->done_qbuffer[index]=0; index++; !! index %= ARCMSR_MAX_HBB_POSTQUEUE; /*if last index number set it to 0 */ phbbmu->doneq_index=index; /* check if command done with no error*/ srb=(struct CommandControlBlock *) (acb->vir2phy_offset+(flag_srb << 5));/*frame must be 32 bytes aligned*/ poll_srb_done = (srb==poll_srb) ? 1:0; ****** place:funcall ******** @BitExplanation @OsSpecific /home/yyzhou/pad/software-os-src/freebsd/dev/em/e1000_82571.c:881:1 * NVM and Phy. */ if (hw->mac.type == e1000_82573) msec_delay(25); !! /* Clear any pending interrupt events. */ E1000_WRITE_REG(hw, E1000_IMC, 0xffffffff); icr = E1000_READ_REG(hw, E1000_ICR); if (!(e1000_check_alt_mac_addr_generic(hw))) e1000_set_laa_state_82571(hw, TRUE); ******** @BitExplanation /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_rtalloc.c:1711:1 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); if (error) { return error; } bufp = (xfs_rtword_t *)XFS_BUF_PTR(bp); !! /* * Compute the starting word's address, and starting bit. */ word = XFS_BITTOWORD(mp, start); first = b = &bufp[word]; bit = (int)(start & (XFS_NBWORD - 1)); /* * 0 (allocated) => all zeroes; 1 (free) => all ones. ******** @BitExplanation /home/yyzhou/pad/software-os-src/linux/arch/sh/boards/superh/microdev/irq.c:104:1 if (!fpgaIrqTable[irq].mapped) return; fpgaIrq = fpgaIrqTable[irq].fpgaIrq; !! /* disable interrupts on the FPGA INTC register */ ctrl_outl(MICRODEV_FPGA_INTC_MASK(fpgaIrq), MICRODEV_FPGA_INTDSB_REG); } static void enable_microdev_irq(unsigned int irq) { ******** @BitExplanation /home/yyzhou/pad/software-os-src/linux/drivers/video/controlfb.c:772:1 __delay(200); out_le32(CNTRL_REG(p,mon_sense), 077); /* turn off drivers */ __delay(2000); sense = (in_le32(CNTRL_REG(p,mon_sense)) & 0x1c0) << 2; !! /* drive each sense line low in turn and collect the other 2 */ out_le32(CNTRL_REG(p,mon_sense), 033); /* drive A low */ __delay(2000); sense |= (in_le32(CNTRL_REG(p,mon_sense)) & 0xc0) >> 2; out_le32(CNTRL_REG(p,mon_sense), 055); /* drive B low */ __delay(2000); ****** place:if ******** @BitExplanation @Devil /home/yyzhou/pad/software-os-src/freebsd/net80211/ieee80211_ht.c:1812:2 * we are operational and the channel attributes identify * how we've been setup (which might be different if a fixed * channel is specified). */ if (ic->ic_opmode == IEEE80211_M_STA) { !! /* override 20/40 use based on config */ if (ic->ic_flags_ext & IEEE80211_FEXT_USEHT40) caps |= IEEE80211_HTCAP_CHWIDTH40; else caps &= ~IEEE80211_HTCAP_CHWIDTH40; /* use advertised setting (XXX locally constraint) */ ******** @BitExplanation @CondRelated /home/yyzhou/pad/software-os-src/freebsd/pci/if_xl.c:2875:1 rxfilt = CSR_READ_1(sc, XL_W5_RX_FILTER); /* Set the individual bit to receive frames for this host only. */ rxfilt |= XL_RXFILTER_INDIVIDUAL; !! /* If we want promiscuous mode, set the allframes bit. */ if (ifp->if_flags & IFF_PROMISC) { rxfilt |= XL_RXFILTER_ALLFRAMES; CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_RX_SET_FILT|rxfilt); } else { rxfilt &= ~XL_RXFILTER_ALLFRAMES; ******** @BitExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/io/net80211/net80211_proto.c:328:1 * and not in an IBSS. We must also honor whether or not * the driver is capable of doing it. */ ieee80211_set_shortslottime(ic, ic->ic_curmode == IEEE80211_MODE_11A); !! /* * Set short preamble and ERP barker-preamble flags. */ if (ic->ic_curmode == IEEE80211_MODE_11A || (ic->ic_caps & IEEE80211_C_SHPREAMBLE)) { ic->ic_flags |= IEEE80211_F_SHPREAMBLE; ic->ic_flags &= ~IEEE80211_F_USEBARKER; } else { ****** place:macro_function ******** @BitExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/sys/strsubr.h:535:0 #define SQ_WANTEXWAKEUP 0x0040 /* do cv_broadcast on sq_exitwait */ #define SQ_EVENTS 0x0080 /* Events pending */ #define SQ_QUEUED (SQ_MESSAGES | SQ_EVENTS) #define SQ_FLAGMASK 0x00FF !!/* * Test a queue to see if inner perimeter is exclusive. */ #define PERIM_EXCL(q) ((q)->q_syncq->sq_flags & SQ_EXCL) /* * If any of these flags are set it is not possible for a thread to * enter a put or service procedure. Instead it must either block ****** place:unknown ******** @BitExplanation @StupidComment /home/yyzhou/pad/software-os-src/opensolaris/common/io/ib/mgt/ibcm/ibcm_ti.c:316:1 "Invalid Channel type: Applicable only to RC Channel", channel); return (IBT_CHAN_SRV_TYPE_INVALID); } !! /* Check if QP is in INIT state or not */ if (qp_query_attr.qp_info.qp_state != IBT_STATE_INIT) { IBTF_DPRINTF_L2(cmlog, "ibt_open_rc_channel: chan 0x%p " "QP is not in INIT state %x", channel, qp_query_attr.qp_info.qp_state); return (IBT_CHAN_STATE_INVALID); **** !no objs!@BitIgnore **** !no objs!@BitTruncate **** !no objs!@BitCheck **** @BitAlign ****** place:if ******** @BitAlign @OsMemory /home/yyzhou/pad/software-os-src/opensolaris/i86pc/os/startup.c:2241:2 addr = pmem->address; size = pmem->size; if (btop(addr) > physmax) continue; !! /* * align addr and size - they may not be at page boundaries */ if ((addr & MMU_PAGEOFFSET) != 0) { addr += MMU_PAGEOFFSET; addr &= ~(uint64_t)MMU_PAGEOFFSET; size -= addr - pmem->address; } ***** !no objs!@BitExplanationOther *** @ForExplanation ****** place:assign ******** @ForExplanation /home/yyzhou/pad/software-os-src/linux/kernel/sched.c:6541:1 (SD_SHARE_CPUPOWER | SD_SHARE_PKG_RESOURCES)))) { sg_inc_cpu_power(sd->groups, SCHED_LOAD_SCALE); return; } !! /* * add cpu_power of each child group to this groups cpu_power */ group = child->groups; do { sg_inc_cpu_power(sd->groups, group->__cpu_power); group = group->next; } while (group != child->groups); ****** place:function ******** @ForExplanation /home/yyzhou/pad/software-os-src/linux/fs/namespace.c:1353:0 goto resume; } return found; } !!/* * process a list of expirable mountpoints with the intent of discarding any * submounts of a specific parent mountpoint */ void shrink_submounts(struct vfsmount *mountpoint, struct list_head *mounts) { LIST_HEAD(graveyard); int found; ****** place:function_misc ******** @ForExplanation /home/yyzhou/pad/software-os-src/freebsd/dev/sound/pci/es137x.c:1134:1 /* save the current state for later */ x = orig = es_rd(es, ES1371_REG_SMPRATE, 4); /* enable SRC state data in SRC mux */ es_wr(es, ES1371_REG_SMPRATE, (x & (ES1371_DIS_SRC | ES1371_DIS_P1 | ES1371_DIS_P2 | ES1371_DIS_R1)) | 0x00010000, 4); !! /* busy wait */ for (t = 0; t < 0x1000; t++) { if ((x = es_rd(es, ES1371_REG_SMPRATE, 4) & 0x00870000) == 0x00000000) break; } ****** place:loop ******** @ForExplanation /home/yyzhou/pad/software-os-src/freebsd/dev/sound/pci/via8233.c:329:1 static int via_waitvalid_codec(struct via_info *via) { int i; !! /* poll until codec valid */ for (i = 0; i < 1000; i++) { if (via_rd(via, VIA_AC97_CONTROL, 4) & VIA_AC97_CODEC00_VALID) return (0); DELAY(1); } ******** @ForExplanation /home/yyzhou/pad/software-os-src/linux/drivers/net/irda/smsc-ircc2.c:2119:1 static void smsc_ircc_sir_wait_hw_transmitter_finish(struct smsc_ircc_cb *self) { int iobase = self->io.sir_base; int count = SMSC_IRCC2_HW_TRANSMITTER_TIMEOUT_US; !! /* Calibrated busy loop */ while (count-- > 0 && !(inb(iobase + UART_LSR) & UART_LSR_TEMT)) udelay(1); if (count == 0) IRDA_DEBUG(0, "%s(): stuck transmitter\n", __FUNCTION__); ******** @ForExplanation @OsSpecific /home/yyzhou/pad/software-os-src/opensolaris/common/fs/proc/prvnops.c:2381:1 Bpwp = pwp = kmem_zalloc(size, KM_SLEEP); mutex_enter(&p->p_lock); /* p->p_nwarea can't change while process is locked */ ASSERT(nwarea == avl_numnodes(&p->p_warea)); !! /* gather the watched areas */ for (pwarea = avl_first(&p->p_warea); pwarea != NULL; pwarea = AVL_NEXT(&p->p_warea, pwarea), pwp++) { pwp->pr_vaddr = (caddr32_t)(uintptr_t)pwarea->wa_vaddr; pwp->pr_size = (size32_t)(pwarea->wa_eaddr - pwarea->wa_vaddr); pwp->pr_wflags = (int)pwarea->wa_flags; ******** @ForExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/io/stream.c:1733:2 if ((q->q_first = bp->b_next) == NULL) q->q_last = NULL; else q->q_first->b_prev = NULL; !! /* Get message byte count for q_count accounting */ for (tmp = bp; tmp; tmp = tmp->b_cont) { ADD_MBLK_SIZE(tmp, bytecnt); mblkcnt++; } **** @ForFind ****** place:assign ******** @ForFind /home/yyzhou/pad/software-os-src/opensolaris/common/io/lvm/md/md_mddb.c:1161:3 if (ddi_lyr_devid_to_devlist(devid, minor_name, &retndevs, &ddi_devs) == DDI_SUCCESS) { if (retndevs > 0) { /* devid is valid to use */ devid_flag = 1; !! /* does dev_t in list match dev */ cnt = 0; while (cnt < retndevs) { if (*dev == md_expldev(ddi_devs[cnt])) break; cnt++; ****** place:funcall ******** @ForFind /home/yyzhou/pad/software-os-src/opensolaris/common/os/log_sysevent.c:1012:1 close_channel(char *channel_name) { int hash_index; sysevent_channel_descriptor_t *chan, *prev_chan; !! /* Find channel descriptor */ hash_index = CHANN_HASH(channel_name); prev_chan = chan = registered_channels[hash_index]; while (chan != NULL) { if (strcmp(chan->scd_channel_name, channel_name) == 0) { ****** place:function_misc ******** @ForFind /home/yyzhou/pad/software-os-src/linux/drivers/media/video/cpia2/cpia2_usb.c:239:3 int n = urb->iso_frame_desc[i].actual_length; int st = urb->iso_frame_desc[i].status; if(cam->workbuff->status == FRAME_READY) { struct framebuf *ptr; !! /* Try to find an available buffer */ DBG("workbuff full, searching\n"); for (ptr = cam->workbuff->next; ptr != cam->workbuff; ptr = ptr->next) { ****** place:loop ******** @ForFind /home/yyzhou/pad/software-os-src/linux/drivers/hid/hid-input.c:167:1 static struct hidinput_key_translation *find_translation(struct hidinput_key_translation *table, u16 from) { struct hidinput_key_translation *trans; !! /* Look for the translation */ for (trans = table; trans->from; trans++) if (trans->from == from) return trans; return NULL; ****** place:unknown ******** @ForFind /home/yyzhou/pad/software-os-src/freebsd/kern/subr_turnstile.c:1050:1 int i; if (!have_addr) return; !! /* * First, see if there is an active turnstile for the lock indicated * by the address. */ lock = (struct lock_object *)addr; tc = TC_LOOKUP(lock); LIST_FOREACH(ts, &tc->tc_turnstiles, ts_hash) if (ts->ts_lockobj == lock) goto found; **** @ForExist ****** place:funcall ******** @ForExist /home/yyzhou/pad/software-os-src/linux/arch/sparc/mm/srmmu.c:2050:2 /* Next check for Fujitsu Swift. */ if(psr_typ == 0 && psr_vers == 4) { int cpunode; char node_str[128]; !! /* Look if it is not a TurboSparc emulating Swift... */ cpunode = prom_getchild(prom_root_node); while((cpunode = prom_getsibling(cpunode)) != 0) { prom_getstring(cpunode, "device_type", node_str, sizeof(node_str)); if(!strcmp(node_str, "cpu")) { if (!prom_getintdefault(cpunode, "psr-implementation", 1) && **** @ForFilter ****** place:loop ******** @ForFilter /home/yyzhou/pad/software-os-src/freebsd/netinet/sctp_asconf.c:309:1 src_net = sctp_findnet(stcb, src); if (src_net == NULL) { /* not found */ return -1; } !! /* delete all destination addresses except the source */ TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) { if (net != src_net) { /* delete this address */ sctp_remove_net(stcb, net); SCTPDBG(SCTP_DEBUG_ASCONF1, **** @ForIter ****** place:loop ******** @ForIter /home/yyzhou/pad/software-os-src/linux/fs/ntfs/attrib.c:2201:2 if (err != -ENOMEM) err = -EIO; goto err_out; } ni->runlist.rl = rl; !! /* Seek to the end of the runlist. */ while (rl->length) rl++; } /* * We now know the runlist of the last extent is mapped and @rl is at **** !no objs!@ForFold **** !no objs!@ForCheck *** @ListExplanation ****** place:assignfield ******** @ListExplanation /home/yyzhou/pad/software-os-src/linux/drivers/pci/hotplug/cpqphp_ctrl.c:576:3 split_node->base = node->base; split_node->length = temp_dword - node->base; node->base = temp_dword; node->length -= split_node->length; !! /* Put it in the list */ split_node->next = node->next; node->next = split_node; } /* End of non-aligned base */ /* Don't need to check if too small since we already did */ ******** @ListExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/io/dld/dld_str.c:2040:2 dsp->ds_tx_list_head = mp; else dsp->ds_tx_list_tail->b_next = mp; dsp->ds_tx_list_tail = tail; } else { !! /* Head insertion */ tail->b_next = dsp->ds_tx_list_head; if (dsp->ds_tx_list_head == NULL) dsp->ds_tx_list_tail = tail; dsp->ds_tx_list_head = mp; } ******** @ListExplanation /home/yyzhou/pad/software-os-src/opensolaris/sun4v/io/vnet_gen.c:4990:1 VIO_DP_STOPPED); if (rv != VGEN_SUCCESS) { goto error_ret; } !! /* save new recv index of next dring msg */ ldcp->next_rxi = next_rxi; error_ret: /* send up packets received so far */ if (bp != NULL) { ****** place:funcall ******** @ListExplanation /home/yyzhou/pad/software-os-src/freebsd/boot/common/interp_forth.c:111:1 cp = stackPopPtr(vm->pStack); strcat(line, " "); strncat(line, cp, len); } } else { !! /* Get remainder of invocation */ tail = vmGetInBuf(vm); for (cp = tail, len = 0; cp != vm->tib.end && *cp != 0 && *cp != '\n'; cp++, len++) ; line = malloc(strlen(name) + len + 2); ******** @ListExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/io/usb/hcd/openhci/ohci_polled.c:1701:1 ohci_state_t *ohcip, ohci_trans_wrapper_t *tw, ohci_td_t *td) { !! /* * Set the next pointer to NULL because * this is the last TD on list. */ Set_TD(td->hctd_tw_next_td, NULL); if (tw->tw_hctd_head == NULL) { ASSERT(tw->tw_hctd_tail == NULL); tw->tw_hctd_head = td; *** !no objs!@OperationExplanation *** @MemoryExplanation ****** place:assignfield ******** @MemoryExplanation /home/yyzhou/pad/software-os-src/opensolaris/common/io/sata/adapters/nv_sata/nv_sata.c:3098:1 "rc %d count %d", rc, count)); return (DDI_FAILURE); } !! /* * allocate an array of interrupt handles */ nvc->nvc_intr_size = count * sizeof (ddi_intr_handle_t); nvc->nvc_htable = kmem_zalloc(nvc->nvc_intr_size, KM_SLEEP); /* * call ddi_intr_alloc() ****** place:funcall ******** @MemoryExplanation /home/yyzhou/pad/software-os-src/freebsd/dev/usb/if_udav.c:1636:1 } #endif /* Free RX resources. */ usb_ether_rx_list_free(&sc->sc_cdata); !! /* Free TX resources. */ usb_ether_tx_list_free(&sc->sc_cdata); sc->sc_link = 0; #if defined(__FreeBSD__) ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); ******** @MemoryExplanation /home/yyzhou/pad/software-os-src/linux/drivers/block/ub.c:916:1 bcb->DataTransferLength = cpu_to_le32(cmd->len); bcb->Flags = (cmd->dir == UB_DIR_READ) ? 0x80 : 0; bcb->Lun = (cmd->lun != NULL) ? cmd->lun->num : 0; bcb->Length = cmd->cdb_len; !! /* copy the command payload */ memcpy(bcb->CDB, cmd->cdb, UB_MAX_CDB_SIZE); UB_INIT_COMPLETION(sc->work_done); sc->last_pipe = sc->send_bulk_pipe; ******** @MemoryExplanation /home/yyzhou/pad/software-os-src/linux/fs/reiserfs/lbalance.c:1109:1 /* change locations */ for (i = cut_item_num; i < nr; i++) put_ih_location(&(ih[i - cut_item_num]), ih_location(&ih[i - cut_item_num]) + cut_size); !! /* size, free space */ set_blkh_free_space(blkh, blkh_free_space(blkh) + cut_size); do_balance_mark_leaf_dirty(bi->tb, bh, 0); if (bi->bi_parent) { ****** place:if ******** @MemoryExplanation /home/yyzhou/pad/software-os-src/freebsd/dev/aic7xxx/aic7xxx.c:4413:1 goto error_exit; } scb_data->init_level++; !! /* Allocate them */ if (aic_dmamem_alloc(ahc, scb_data->sense_dmat, (void **)&scb_data->sense, BUS_DMA_NOWAIT, &scb_data->sense_dmamap) != 0) { goto error_exit; } ****** place:loop ******** @MemoryExplanation /home/yyzhou/pad/software-os-src/linux/drivers/ieee1394/dv1394.c:1017:1 } video->ohci_ir_ctx = video->ir_tasklet.context; debug_printk("dv1394: claimed IR DMA context %d\n", video->ohci_ir_ctx); } !! /* allocate struct frames */ for (i = 0; i < init->n_frames; i++) { video->frames[i] = frame_new(i, video); if (!video->frames[i]) { printk(KERN_ERR "dv1394: Cannot allocate frame structs\n"); *** @ExplanationOther ****** place:assign ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/dev/idt/idt.c:995:23 idt->raw_headp = vtophys(buf0->m_data); } if (idt_status_wait(idt)) /* 12/06/2000 */ return (-1); !! val0 = (u_long)buf0; /* mbuf address is handle */ val1 = vtophys(buf0->m_data); /* DMA addr of buff1 */ val2 = (u_long)buf1; /* mbuf address is handle */ val3 = vtophys(buf1->m_data); /* DMA addr of buff2 */ *(idt->reg_data + 0) = val0; ******** @ExplanationOther @OsHardwareSpec @Limitation /home/yyzhou/pad/software-os-src/freebsd/dev/wi/if_wi.c:1593:3 case IEEE80211_FC0_TYPE_MGT: hdrlen = WI_MGMT_HDRLEN; datlen = rx_frame->wi_dat_len + WI_FCS_LEN; break; case IEEE80211_FC0_TYPE_CTL: !! /* * prism2 cards don't pass control packets * down properly or consistently, so we'll only * pass down the header. */ hdrlen = WI_CTL_HDRLEN; datlen = 0; break; default: if_printf(ifp, "received packet of unknown type " ******** @ExplanationOther @OsSpecific /home/yyzhou/pad/software-os-src/freebsd/netatm/uni/unisig_subr.c:217:2 ATM_PVC_GET_VPI(pvp), ATM_PVC_GET_VCI(pvp)); break; case T_ATM_ENDSYS_ADDR: !! /* * Check signalling state */ pvc = 0; pvp = NULL; if (usp->us_state != UNISIG_ACTIVE) { return(ENETDOWN); } ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/drivers/scsi/dpt_i2o.c:567:2 /* CHECKPOINT */ if(pos > offset + length) { goto stop_output; } if(pos <= offset) { !! /* * If we haven't even written to where we last left * off (the last time we were called), reset the * beginning pointer. */ len = 0; begin = pos; } len += sprintf(buffer+len, "Devices:\n"); for(chan = 0; chan < MAX_CHANNEL; chan++) { ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/drivers/video/omap/hwa742.c:879:1 if (vs <= hs) return -EDOM; /* set VS to 120% of HS to minimize VS detection time */ vs = hs * 12 / 10; !! /* minimize HS too */ hs = 10000; b = hwa742_read_reg(HWA742_NDP_CTRL); b &= ~0x3; b |= use_hsvs ? 1 : 0; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/os/lgrp.c:3948:1 mutex_exit(&vp->v_lock); return; } !! /* * Increment reference count of number of segments mapping this vnode * shared */ shm_locality = vp->v_locality; shm_locality->loc_count++; mutex_exit(&vp->v_lock); } ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/sun4u/io/pic16f747.c:428:2 return (0); case PIC_GET_STATUS: mutex_exit(&softc->mutex); !! /* we don't read the status reg anymore */ in_command = 0; (void) ddi_copyout(&in_command, (caddr_t)arg, 1, mode); return (0); ****** place:assignfield ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/arch/x86/boot/edd.c:93:29 if (bx != EDDMAGIC2) return -1; ei->device = devno; ei->version = ax >> 8; /* EDD version number */ !! ei->interface_support = cx; /* EDD functionality subsets */ /* Extended Get Device Parameters */ ei->params.length = sizeof(ei->params); ax = 0x4800; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/drivers/net/usb/cdc_ether.c:170:3 dev_dbg(&intf->dev, "CDC union len %u\n", info->u->bLength); goto bad_desc; } !! /* we need a master/control interface (what we're * probed with) and a slave/data interface; union * descriptors sort this all out. */ info->control = usb_ifnum_to_if(dev->udev, info->u->bMasterInterface0); info->data = usb_ifnum_to_if(dev->udev, info->u->bSlaveInterface0); if (!info->control || !info->data) { ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/drivers/net/wireless/iwlwifi/iwl-4965-rs.c:706:1 return; table = &lq_sta->lq; active_index = lq_sta->active_tbl; !! /* Get mac80211 antenna info */ lq_sta->antenna = (lq_sta->valid_antenna & local->hw.conf.antenna_sel_tx); if (!lq_sta->antenna) lq_sta->antenna = lq_sta->valid_antenna; ******** @ExplanationOther @StupidComment /home/yyzhou/pad/software-os-src/linux/drivers/scsi/qla2xxx/qla_init.c:1766:1 * Need enough time to try and get the port back. */ ha->port_down_retry_count = nv->port_down_retry_count; if (qlport_down_retry) ha->port_down_retry_count = qlport_down_retry; !! /* Set login_retry_count */ ha->login_retry_count = nv->retry_count; if (ha->port_down_retry_count == nv->port_down_retry_count && ha->port_down_retry_count > 3) ha->login_retry_count = ha->port_down_retry_count; else if (ha->port_down_retry_count > (int)ha->login_retry_count) ******** @ExplanationOther @StupidCode @OsSpecific /home/yyzhou/pad/software-os-src/linux/sound/pci/emu10k1/emu10k1_synth.c:59:1 emux->hw = hw; emux->max_voices = arg->max_voices; emux->num_ports = arg->seq_ports; emux->pitch_shift = -501; emux->memhdr = hw->memhdr; !! /* maximum two ports */ emux->midi_ports = arg->seq_ports < 2 ? arg->seq_ports : 2; /* audigy has two external midis */ emux->midi_devidx = hw->audigy ? 2 : 1; emux->linear_panning = 0; emux->hwdep_idx = 2; /* FIXED */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/inet/tcp/tcp.c:12129:1 /* At least retransmit 1 MSS of data. */ if (usable_swnd <= 0) { usable_swnd = mss; } !! /* Make sure no new RTT samples will be taken. */ tcp->tcp_csuna = tcp->tcp_snxt; notsack_blk = tcp->tcp_notsack_list; while (usable_swnd > 0) { mblk_t *snxt_mp, *tmp_mp; ****** place:assignop_plusminus ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/cmlb.c:2380:2 track_capacity = (cl->cl_g.dkg_nhead * cl->cl_g.dkg_nsect); label_capacity = (cl->cl_g.dkg_ncyl * track_capacity); if (cl->cl_g.dkg_acyl) { #if defined(__i386) || defined(__amd64) !! /* we may have > 1 alts cylinder */ label_capacity += (track_capacity * cl->cl_g.dkg_acyl); #else label_capacity += track_capacity; #endif } ******** @ExplanationOther @OsMemory /home/yyzhou/pad/software-os-src/opensolaris/sparc/v9/os/simulator.c:638:17 if (immflg) { int imm; imm = inst & 0x1fff; /* mask out immediate field */ imm <<= 19; /* sign extend it */ imm >>= 19; !! addr += imm; /* compute address */ } else { if (getreg(rp, rs2, &val, badaddr)) return (SIMU_FAULT); addr += val; } ****** place:break ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip/ip.c:11284:3 } *outlenp = inlen; return (0); } case IPV6_UNICAST_HOPS: !! /* Recorded in transport above IP */ break; /* goto sizeof (int) option return */ case IPV6_UNSPEC_SRC: /* Allow sending with a zero source address */ if (!checkonly) { mutex_enter(&connp->conn_lock); ****** place:case ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/drivers/isdn/capi/capidrv.c:1332:26 case CAPI_RESET_B3_CONF: /* ncci */ goto ignored; /* $$$$ */ case CAPI_FACILITY_IND: /* Controller/plci/ncci */ goto ignored; !! case CAPI_FACILITY_CONF: /* Controller/plci/ncci */ goto ignored; default: printk(KERN_ERR "capidrv-%d: got %s for ncci 0x%x ???", card->contrnr, ****** place:enum_value ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/arch/ia64/kernel/unwind_i.h:120:18 }; enum unw_nat_type { UNW_NAT_NONE, /* NaT not represented */ UNW_NAT_VAL, /* NaT represented by NaT value (fp reg) */ !! UNW_NAT_MEMSTK, /* NaT value is in unat word at offset OFF */ UNW_NAT_REGSTK /* NaT is in rnat */ }; enum unw_insn_opcode { UNW_INSN_ADD, /* s[dst] += val */ ****** place:field ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/contrib/dev/ath/ah_soc.h:105:39 * and fill-in this information before passing a reference to * this structure as the HAL_BUS_TAG parameter supplied to * ath_hal_attach. */ struct ar531x_config { !! const struct ar531x_boarddata *board; /* board config data */ const char *radio; /* radio config data */ int unit; /* unit number [0, 1] */ void *tag; /* bus space tag */ }; #endif /* _ATH_AH_SOC_H_ */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/dev/asr/osd_unix.h:444:23 int qdepth; /* Controller queue depth. */ int wakebase; /* mpx wakeup base index. */ uLONG SGsize; /* Scatter/Gather list size. */ unsigned heads; /* heads for drives on cntlr. */ unsigned sectors; /* sectors for drives on cntlr. */ !! uCHAR do_drive32; /* Flag for Above 16 MB Ability */ uCHAR BusQuiet; /* SCSI Bus Quiet Flag */ char idPAL[4]; /* 4 Bytes Of The ID Pal */ uCHAR primary; /* 1 For Primary, 0 For Secondary */ uCHAR eataVersion; /* EATA Version */ uLONG cpLength; /* EATA Command Packet Length */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/dev/asr/osd_unix.h:538:20 PIO commands */ ulong cpLength; /* EATA Command Packet length */ ulong spLength; /* EATA Status Packet length */ uchar eataflag1; /* EATA Flags 1 (Byte 9) */ uchar eataflag2; /* EATA Flags 2 (Byte 30) */ !! uchar maxChan; /* Maximum Channel number */ uchar maxID; /* Maximum target ID */ uchar maxLUN; /* Maximum LUN */ uchar HbaBusType; /* HBA bus type, EISA, PCI, etc */ uchar RaidNum; /* Host adapter RAID number */ } DptCfg_t; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/i386/i386/mptable.c:139:14 u_char found; }; struct pci_route_interrupt_args { u_char bus; /* Source bus. */ !! u_char irq; /* Source slot:pin. */ int vector; /* Return value. */ }; static mpfps_t mpfps; static mpcth_t mpct; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/sys/tty.h:180:17 size_t xt_size; /* Structure size. */ long xt_rawcc; /* Raw input queue statistics. */ long xt_cancc; /* Canonical queue statistics. */ long xt_outcc; /* Output queue statistics. */ int xt_line; /* Interface to device drivers. */ !! dev_t xt_dev; /* Userland (sysctl) instance. */ int xt_state; /* Device and driver (TS*) state. */ int xt_flags; /* Tty flags. */ int xt_timeout; /* Timeout for ttywait(). */ pid_t xt_pgid; /* Process group ID. */ pid_t xt_sid; /* Session ID. */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/drivers/atm/idt77105.c:34:33 #define DPRINTK(format,args...) #endif struct idt77105_priv { !! struct idt77105_stats stats; /* link diagnostics */ struct atm_dev *dev; /* device back-pointer */ struct idt77105_priv *next; int loop_mode; unsigned char old_mcr; /* storage of MCR reg while signal lost */ }; ******** @ExplanationOther @MaybeComment /home/yyzhou/pad/software-os-src/linux/drivers/media/video/zoran.h:327:34 ZORAN_LOCKED, /* locked */ }; /* buffer collections */ struct zoran_jpg_struct { !! enum zoran_lock_activity active; /* feature currently in use? */ struct zoran_jpg_buffer buffer[BUZ_MAX_FRAME]; /* buffers */ int num_buffers, buffer_size; u8 allocated; /* Flag if buffers are allocated */ u8 ready_to_be_freed; /* hack - see zoran_driver.c */ u8 need_contiguous; /* Flag if contiguous buffers are needed */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/fs/zfs/arc.c:543:25 uint64_t l2ad_start; /* first addr on device */ uint64_t l2ad_end; /* last addr on device */ uint64_t l2ad_evict; /* last addr eviction reached */ boolean_t l2ad_first; /* first sweep through */ list_t *l2ad_buflist; /* buffer list */ !! list_node_t l2ad_node; /* device list node */ } l2arc_dev_t; static list_t L2ARC_dev_list; /* device list */ static list_t *l2arc_dev_list; /* device list pointer */ static kmutex_t l2arc_dev_mtx; /* device list mutex */ ******** @ExplanationOther @Null /home/yyzhou/pad/software-os-src/opensolaris/common/gssapi/mechs/krb5/include/krb5.h:1126:28 typedef struct _krb5_ap_rep_enc_part { krb5_magic magic; krb5_timestamp ctime; /* client time, seconds portion */ krb5_int32 cusec; /* client time, microseconds portion */ !! krb5_keyblock *subkey; /* true session key, optional */ krb5_ui_4 seq_number; /* sequence #, optional */ } krb5_ap_rep_enc_part; typedef struct _krb5_response { krb5_magic magic; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/igb/igb_hw.h:581:17 u16 pci_cmd_word; }; struct e1000_fc_info { u32 high_water; /* Flow control high-water mark */ !! u32 low_water; /* Flow control low-water mark */ u16 pause_time; /* Flow control pause timer */ bool send_xon; /* Flow control send XON */ bool strict_ieee; /* Strict IEEE mode */ e1000_fc_type type; /* Type of flow control */ e1000_fc_type original_type; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/rtw/rtwvar.h:456:20 struct rtw_hooks sc_hooks; uint_t sc_cur_chan; uint32_t sc_tsfth; /* most significant TSFT bits */ !! uint32_t sc_rcr; /* RTW_RCR */ uint8_t sc_csthr; /* carrier-sense threshold */ uint8_t sc_rev; /* PCI/Cardbus revision */ uint32_t sc_anaparm; /* register RTW_ANAPARM */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/sys/ctfs_impl.h:171:35 * events file data */ typedef struct ctfs_evnode { gfs_file_t ctfs_ev_file; /* gfs file */ contract_t *ctfs_ev_contract; /* contract we're watching */ !! ctfs_endpoint_t ctfs_ev_listener; /* common endpoint data */ } ctfs_evnode_t; /* * bundle and pbundle file data */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/sys/link.h:344:23 Elf32_Word vn_next; /* no. of bytes from start of this */ } Elf32_Verneed; /* verneed to next verneed entry */ typedef struct { /* Verneed Auxiliary Structure. */ Elf32_Word vna_hash; /* version name hash value */ !! Elf32_Half vna_flags; /* version information */ Elf32_Half vna_other; Elf32_Word vna_name; /* version name */ Elf32_Word vna_next; /* no. of bytes from start of this */ } Elf32_Vernaux; /* vernaux to next vernaux entry */ ******** @ExplanationOther @StupidComment /home/yyzhou/pad/software-os-src/opensolaris/common/vm/seg_vn.h:61:16 struct cred *cred; /* credentials */ u_offset_t offset; /* starting offset of vnode for mapping */ uchar_t type; /* type of sharing done */ uchar_t prot; /* protections */ uchar_t maxprot; /* maximum protections */ !! uint_t flags; /* flags */ struct anon_map *amp; /* anon mapping to map to */ uint_t szc; /* max preferred page size code */ uint_t lgrp_mem_policy_flags; } segvn_crargs_t; ****** place:funcall ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/dev/hwpmc/hwpmc_piv.c:1512:1 --rc; P4_PCPU_SET_RUNCOUNT(pc,ri,rc); !! /* Stop this PMC */ cccrvalue = rdmsr(pd->pm_cccr_msr); wrmsr(pd->pm_cccr_msr, cccrvalue & ~P4_CCCR_ENABLE); escrmsr = pm->pm_md.pm_p4.pm_p4_escrmsr; escrvalue = rdmsr(escrmsr); ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/dev/scd/scd.c:745:2 blknum = bp->bio_offset / mbx->sz + mbx->skip/mbx->sz; XDEBUG(sc, 2, "scd_doread: read blknum=%d\n", blknum); !! /* build parameter block */ hsg2msf(blknum, sdata); SCD_WRITE(sc, OREG_CONTROL, CBIT_RESULT_READY_CLEAR); SCD_WRITE(sc, OREG_CONTROL, CBIT_RPARAM_CLEAR); SCD_WRITE(sc, OREG_CONTROL, CBIT_DATA_READY_CLEAR); ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/dev/usb/usb_subr.c:170:37 return (err); if (actlen < 2) return (USBD_SHORT_XFER); !! USETW(req.wLength, sdesc->bLength); /* the whole string */ err = usbd_do_request_flags(dev, &req, sdesc, USBD_SHORT_XFER_OK, &actlen, USBD_DEFAULT_TIMEOUT); if (err) return (err); ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/kern/subr_witness.c:776:1 * once. */ prnt("Sleep locks:\n"); witness_display_list(prnt, &w_sleep); !! /* * Now do spin locks which have been acquired at least once. */ prnt("\nSpin locks:\n"); witness_display_list(prnt, &w_spin); /* * Finally, any locks which have not been acquired yet. ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/netgraph/bluetooth/drivers/ubt/ng_ubt.c:1701:1 __func__, device_get_nameunit(sc->sc_dev), sc->sc_isoc_nframes, sc->sc_isoc_size, m->m_pkthdr.len); NG_FREE_M(m); !! /* Initialize a isoc-out USB transfer and then schedule it */ usbd_setup_isoc_xfer( sc->sc_isoc_out_xfer, sc->sc_isoc_out_pipe, (usbd_private_handle) sc->sc_node, sc->sc_isoc_out_frlen, ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/arch/x86/math-emu/errors.c:618:2 tag = TAG_Zero; } else { stdexp(dest); } } else { !! /* Add the magic number to the exponent. */ addexponent(dest, (3 * (1 << 13)) + EXTENDED_Ebias); } EXCEPTION(EX_Underflow); if (control_word & CW_Underflow) { ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/fs/dquot.c:651:2 schedule(); /* Try to wait for a moment... */ goto we_slept; } dquot = empty; dquot->dq_id = id; !! /* all dquots go on the inuse_list */ put_inuse(dquot); /* hash it first so it can be found */ insert_dquot_hash(dquot); dqstats.lookups++; spin_unlock(&dq_list_lock); ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/fs/jffs2/scan.c:674:3 if (!buf_size && (scan_end != buf_len)) {/* XIP/point case */ scan_end = buf_len; goto more_empty; } !! /* See how much more there is to read in this eraseblock... */ buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); if (!buf_len) { /* No more to read. Break out of main loop without marking this range of empty space as dirty (because it's not) */ D1(printk(KERN_DEBUG "Empty flash at %08x runs to end of block. Treating as free_space\n", ******** @ExplanationOther @StupidComment /home/yyzhou/pad/software-os-src/linux/fs/splice.c:1373:2 error = ret = 0; while (nr_segs) { void __user *base; size_t len; !! /* * Get user address base and length for this iovec. */ error = get_user(base, &iov->iov_base); if (unlikely(error)) break; error = get_user(len, &iov->iov_len); if (unlikely(error)) ******** @ExplanationOther @CondRelated /home/yyzhou/pad/software-os-src/linux/net/sctp/sm_statefuns.c:2303:1 /* Delete non-primary peer ip addresses since we are transitioning * back to the COOKIE-WAIT state */ sctp_add_cmd_sf(commands, SCTP_CMD_DEL_NON_PRIMARY, SCTP_NULL()); !! /* If we've sent any data bundled with COOKIE-ECHO we will need to * resend */ sctp_add_cmd_sf(commands, SCTP_CMD_T1_RETRAN, SCTP_TRANSPORT(asoc->peer.primary_path)); /* Cast away the const modifier, as we want to just * rerun it through as a sideffect. ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/sound/pci/au88x0/au88x0_eq.c:707:1 eq->this28 = 0x1; /* if 1 => Allow read access to this130 (gains) */ eq->this54 = 0x0; /* if 1 => Dont Allow access to hardware (gains) */ eq->this58 = 0xffff; eq->this5c = 0xffff; !! /* Set gains. */ memset(eq->this14_array, 0, sizeof(eq->this14_array)); /* Actual init. */ vortex_EqHw_ZeroState(vortex); vortex_EqHw_SetSampleRate(vortex, 0x11); ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/fs/nfs/nfs_dlinet.c:1701:1 mblk_t *bp; mblk_t *mp; int rc; timestruc_t tv, give_up, now; !! /* * Choose the time at which we will give up, and resend our * request. */ gethrestime(&give_up); give_up.tv_sec += REVARP_TIMEO; wait: /* * Compute new timeout value. ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/audio/sada/drv/audiohd/audiohd.c:4380:1 /* Power up DAC_1 (NID 4) */ (void) audioha_codec_verb_get(statep, caddr, AUDIOHDC_NID(0x04), AUDIOHDC_VERB_SET_POWER_STATE, 0); !! /* DAC_1, set playback input stream */ AUDIOHD_NODE_INIT_DAC(statep, caddr, AUDIOHDC_NID(0x04)); /* PORT-D mixer (NID 29), unmute DAC_1 input */ (void) audioha_codec_4bit_verb_get(statep, caddr, AUDIOHDC_NID(0x29), AUDIOHDC_VERB_SET_AMP_MUTE, ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/gld.c:1466:1 cmn_err(CE_NOTE, "gld_open(%p, Style 1, minor = %d)", (void *)q, minor); } #endif !! /* * get a per-stream structure and link things together so we * can easily find them later. */ gld = kmem_zalloc(sizeof (gld_t), KM_SLEEP); /* * fill in the structure and state info */ ******** @ExplanationOther @OsInterrupt /home/yyzhou/pad/software-os-src/opensolaris/common/io/i8042.c:770:2 * Do not disable the keyboard controller for x86 suspend, as * the keyboard can be used to bring the system out of * suspend. */ #ifdef __sparc !! /* Disable interrupts and controller devices before suspend */ i8042_write_command_byte(global, I8042_CMD_DISABLE_ALL); #endif return (DDI_SUCCESS); case DDI_DETACH: ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/usb/hcd/ehci/ehci_polled.c:328:3 *num_characters = ehci_polled_process_active_intr_qtd_list(ehci_polledp); if (ehcip->ehci_polled_read_count == ehcip->ehci_polled_enter_count) { !! /* Acknowledge the frame list rollover interrupt */ ehci_polled_finish_interrupt(ehcip, intr & (EHCI_INTR_USB | EHCI_INTR_USB_ERROR)); ehcip->ehci_polled_read_count = 0; } } ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/usb/usba/usba.c:2763:2 /* Product string exists to append. */ if ((usba_device->usb_product_str) && ((len = strlen(usba_device->usb_product_str)) != 0)) { !! /* Append only parts of string that don't match mfg string. */ duplen = usba_str_startcmp(buffer, usba_device->usb_product_str); if (duplen != -1) { /* Not a complete match. */ if (return_len > 0) { ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/i86xpv/os/balloon.c:890:4 * free them up one at a time. Otherwise, we'll wait * until later and do it in one hypercall */ if (mfns == NULL) { bzero(&memdec, sizeof (memdec)); !! /*LINTED: constant in conditional context*/ set_xen_guest_handle(memdec.extent_start, &mfn); memdec.domid = DOMID_SELF; memdec.nr_extents = 1; e = HYPERVISOR_memory_op( XENMEM_decrease_reservation, &memdec); ****** place:function_misc ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/contrib/dev/acpica/psargs.c:519:8 break; case ARGP_WORDDATA: !! /* Get 2 bytes from the AML stream */ Opcode = AML_WORD_OP; ACPI_MOVE_16_TO_64 (&Arg->Common.Value.Integer, Aml); Length = 2; break; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/dev/atkbdc/psm.c:1360:4 if (sc->state & PSM_OPEN) return (EBUSY); device_busy(devclass_get_device(psm_devclass, unit)); !! /* Initialize state */ sc->mode.level = sc->dflt_mode.level; sc->mode.protocol = sc->dflt_mode.protocol; sc->watchdog = FALSE; /* flush the event queue */ ******** @ExplanationOther @OsHardwareSpec /home/yyzhou/pad/software-os-src/freebsd/dev/bktr/bktr_core.c:2367:2 switch (cmd) { case METEORSINPUT: /* set input device */ /*Bt848 has 3 MUX Inputs. Bt848A/849A/878/879 has 4 MUX Inputs*/ !! /* On the original bt848 boards, */ /* Tuner is MUX0, RCA is MUX1, S-Video is MUX2 */ /* On the Hauppauge bt878 boards, */ /* Tuner is MUX0, RCA is MUX3 */ /* Unfortunatly Meteor driver codes DEV_RCA as DEV_0, so we */ /* stick with this system in our Meteor Emulation */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/arch/mn10300/kernel/signal.c:397:6 if (__put_user(ka->sa.sa_restorer, &frame->pretcode)) goto give_sigsegv; } else { if (__put_user((void(*)(void))frame->retcode, &frame->pretcode) || !! /* This is mov $,d0; syscall 0 */ __put_user(0x2c, (char *)(frame->retcode + 0)) || __put_user(__NR_rt_sigreturn, (char *)(frame->retcode + 1)) || __put_user(0x00, (char *)(frame->retcode + 2)) || __put_user(0xf0, (char *)(frame->retcode + 3)) || ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/drivers/net/irda/sir_dev.c:956:37 IRDA_ERROR("%s - error %d\n", __FUNCTION__, err); sirdev_close(dev->netdev); down(&dev->fsm.sem); !! dev->fsm.state = SIRDEV_STATE_DEAD; /* mark staled */ dev->dongle_drv = NULL; dev->priv = NULL; up(&dev->fsm.sem); /* Remove netdevice */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/net/sunrpc/xprtrdma/rpc_rdma.c:611:1 } dprintk("RPC: %s: srcp 0x%p len %d hdrlen %d\n", __func__, srcp, copy_len, curlen); !! /* Shift pointer for first receive segment only */ rqst->rq_rcv_buf.head[0].iov_base = srcp; srcp += curlen; copy_len -= curlen; olen = copy_len; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/ib/ibtl/ibtl_qp.c:1039:1 ud_chan, qp_attr.qp_info.qp_state); ud_chan->ch_current_state = qp_attr.qp_info.qp_state; return (IBT_CHAN_STATE_INVALID); } !! /* transition the QP from ERROR to RESET */ qp_attr.qp_info.qp_state = IBT_STATE_RESET; qp_attr.qp_info.qp_trans = ud_chan->ch_qp.qp_type; retval = ibt_modify_qp(ud_chan, IBT_CEP_SET_STATE, &qp_attr.qp_info, NULL); if (retval != IBT_SUCCESS) { ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/lvm/mirror/mirror.c:2932:1 wowhdr->wow_offset += cb->b_bcount; /* copy and setup write for current section */ bcopy(&pb->b_un.b_addr[wow_offset], wowbuf, cb->b_bcount); !! /* do it */ /* * Do not set the MD_IO_COUNTED flag as this is a new I/O request * that handles the WOW condition. The resultant increment on the * I/O count variable is cleared by copy_write_done()'s call to * md_biodone(). ****** place:if ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/dev/acpica/acpi_powerres.c:221:4 /* Find the resource */ if ((rp = acpi_pwr_find_resource(res)) == NULL) return_ACPI_STATUS (AE_BAD_PARAMETER); !! /* Check that there are no consumers referencing this resource */ if (TAILQ_FIRST(&rp->ap_references) != NULL) return_ACPI_STATUS (AE_BAD_PARAMETER); /* Pull it off the list and free it */ TAILQ_REMOVE(&acpi_powerresources, rp, ap_link); ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/ext2fs/ext2_lookup.c:539:1 * information cannot be used. */ cnp->cn_flags |= SAVENAME; return (EJUSTRETURN); } !! /* * Insert name into cache (as non-existent) if appropriate. */ if ((cnp->cn_flags & MAKEENTRY) && nameiop != CREATE) cache_enter(vdp, *vpp, cnp); return (ENOENT); found: ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/kern/kern_kse.c:637:2 return (EINVAL); } else { /* It's an upcall capable thread */ sa = TDP_SA; PROC_LOCK(p); !! /* * Limit it to NCPU upcall contexts per proc in any case. * numupcalls will soon be numkse or something * as it will represent the number of * non-bound upcalls available. (i.e. ones that can * actually call up). */ if (p->p_numupcalls >= ncpus) { PROC_UNLOCK(p); return (EPROCLIM); } p->p_numupcalls++; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/netinet/tcp_syncache.c:1064:2 */ if (sc->sc_ipopts) (void) m_free(sc->sc_ipopts); sc->sc_ipopts = ipopts; } !! /* * Update timestamp if present. */ if ((sc->sc_flags & SCF_TIMESTAMP) && (to->to_flags & TOF_TS)) sc->sc_tsreflect = to->to_tsval; else sc->sc_flags &= ~SCF_TIMESTAMP; #ifdef MAC ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/drivers/input/tablet/wacom_wac.c:351:1 wacom->tool[idx] = BTN_TOOL_PEN; } return 1; } !! /* Exit report */ if ((data[1] & 0xfe) == 0x80) { wacom_report_abs(wcombo, ABS_X, 0); wacom_report_abs(wcombo, ABS_Y, 0); wacom_report_abs(wcombo, ABS_DISTANCE, 0); if (wacom->tool[idx] >= BTN_TOOL_MOUSE) { ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/drivers/media/video/pwc/pwc-if.c:1316:1 if (pdev->error_status) { rv = -pdev->error_status; /* Something happened, report what. */ goto err_out; } !! /* In case we're doing partial reads, we don't have to wait for a frame */ if (pdev->image_read_pos == 0) { /* Do wait queueing according to the (doc)book */ add_wait_queue(&pdev->frameq, &wait); while (pdev->full_frames == NULL) { /* Check for unplugged/etc. here */ ******** @ExplanationOther @StupidComment /home/yyzhou/pad/software-os-src/linux/drivers/net/e100.c:660:1 msleep(10); /* Interrupts are enabled after self-test */ e100_disable_irq(nic); !! /* Check results of self-test */ if(nic->mem->selftest.result != 0) { DPRINTK(HW, ERR, "Self-test failed: result=0x%08X\n", nic->mem->selftest.result); return -ETIMEDOUT; } ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/drivers/s390/block/dasd_3990_erp.c:2281:1 struct dasd_ccw_req *erp = NULL; /* add erp and initialize with default TIC */ erp = dasd_3990_erp_add_erp(cqr); !! /* inspect sense, determine specific ERP if possible */ if (erp != cqr) { erp = dasd_3990_erp_inspect(erp); } ******** @ExplanationOther @StupidComment /home/yyzhou/pad/software-os-src/linux/drivers/serial/v850e_uart.c:164:2 /* Disable interrupts while fiddling with tx interrupt. */ local_irq_save (flags); /* Get current tx interrupt status. */ irq_was_enabled = v850e_intc_irq_enabled (irq); irq_was_pending = v850e_intc_irq_pending (irq); !! /* Disable tx interrupt if necessary. */ if (irq_was_enabled) v850e_intc_disable_irq (irq); /* Turn interrupts back on. */ local_irq_restore (flags); ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/drivers/video/stifb.c:689:36 * planes), at least 4 pixels must be written to the attribute * planes starting at (X == 1280) and (Y != to the last Y written * by BIF): */ !! if (fb->id == S9000_ID_A1659A) { /* ELK_DEVICE_ID */ /* It's safe to use scanline zero: */ packed_dst = (1280 << 16); GET_FIFO_SLOTS(fb, nFreeFifoSlots, 2); NGLE_SET_DSTXY(fb, packed_dst); packed_len = (4 << 16) | 1; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/fs/ntfs/mft.c:2534:2 BUG_ON(!PageUptodate(page)); ClearPageUptodate(page); m = (MFT_RECORD*)((u8*)page_address(page) + ofs); /* If we just formatted the mft record no need to do it again. */ if (!record_formatted) { !! /* Sanity check that the mft record is really not in use. */ if (ntfs_is_file_record(m->magic) && (m->flags & MFT_RECORD_IN_USE)) { ntfs_error(vol->sb, "Mft record 0x%llx was marked " "free in mft bitmap but is marked " "used itself. Corrupt filesystem. " ******** @ExplanationOther @OsSpecific /home/yyzhou/pad/software-os-src/linux/net/irda/af_irda.c:2195:2 if (total > len) total = len; if (copy_to_user(optval+offset, discoveries, total - offset)) err = -EFAULT; !! /* Write total number of bytes used back to client */ if (put_user(total, optlen)) err = -EFAULT; bed: /* Free up our buffer */ kfree(discoveries); ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/gssapi/mechs/krb5/krb5/krb/ser_actx.c:322:5 auth_context->send_subkey, &bp, &remain); } !! /* Now handle subkey, if appropriate */ if (!kret && auth_context->recv_subkey) { (void) krb5_ser_pack_int32(TOKEN_RSKBLOCK, &bp, &remain); kret = krb5_externalize_opaque(kcontext, KV5M_KEYBLOCK, (krb5_pointer) ******** @ExplanationOther @CondRelated /home/yyzhou/pad/software-os-src/opensolaris/common/inet/sctp/sctp_common.c:256:2 IRE_REFRELE_NOTR(ire); fp->ire = NULL; continue; } !! /* * Only record the PMTU for this faddr if we actually have * done discovery. This prevents initialized default from * clobbering any real info that IP may have. */ if (fp->pmtu_discovered) { if (fp->isv4) { ire->ire_max_frag = fp->sfa_pmss + sctp->sctp_hdr_len; } else { ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/usb/clients/usbms/usbms.c:2339:1 } /* For the time being assume that Y also has the same attr */ idf->yattr = idf->xattr; !! /* get the logical_maximum for X and Y respectively */ if (!(idf->xattr & HID_MAIN_ITEM_RELATIVE)) { /* the data format can't be parsed correctly */ if (limit % 8) { USB_DPRINTF_L3(PRINT_MASK_ALL, usbms_log_handle, ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/wscons.c:1051:27 * it takes forever. */ wscons.wc_flags |= WCS_BUSY; wscons.wc_pendc = -1; (void) putbq(q, bp); !! if (q->q_count > 128) { /* do it soon */ softcall(wconsout, NULL); } else { /* wait a bit */ if (wscons.wc_timeoutid != 0) (void) quntimeout(q, wscons.wc_timeoutid); ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/vm/seg_vn.c:7070:2 continue; } ASSERT(pp->p_szc == 0); !! /* * No longer mapped -- we can toss it out. How * we do so depends on whether or not it's dirty. */ if (hat_ismod(pp) && pp->p_vnode) { /* * We must clean the page before it can be * freed. Setting B_FREE will cause pvn_done * to free the page when the i/o completes. ******** @ExplanationOther @ObsoleteComment /home/yyzhou/pad/software-os-src/opensolaris/intel/io/acpica/utilities/uttrack.c:642:4 ACPI_FUNCTION_TRACE (UtDumpAllocations); !! /* * Walk the allocation list. */ if (ACPI_FAILURE (AcpiUtAcquireMutex (ACPI_MTX_MEMORY))) { return; } ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/sparc/v9/fpu/fpu.c:388:1 } fp->fpu_qcnt--; fqp++; } !! /* * fpu_simulator uses the fp registers directly, so we have * to update the pcb copies to keep current, but it uses the * software copy of the fsr, so we write that back to fpu */ if (fpu_exists) { int i; for (i = 0; i < 32; i++) _fp_read_pfreg(&fp->fpu_fr.fpu_regs[i], i); ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/sun/io/scsi/adapters/esp.c:4530:1 target = Tgt(sp); ASSERT(esp->e_cur_slot == ((Tgt(sp) * NLUNS_PER_TARGET) | Lun(sp))); !! /* * Check for DMA gate array errors */ if ((esp->e_dmaga_csr = dmar->dmaga_csr) & DMAGA_ERRPEND) { /* * It would be desirable to set the ATN* line and attempt to * do the whole schmear of INITIATOR DETECTED ERROR here, * but that is too hard to do at present. ******** @ExplanationOther @OsSpecific /home/yyzhou/pad/software-os-src/opensolaris/sun4u/vm/mach_kpm.c:2230:2 if (kp->kp_refcnt < 1) { panic("sfmmu_kpm_page_cache: bad refcnt " "kpm_page=%p\n", (void *)kp); } !! /* * Have to breakup the large page mapping in preparation * to the upcoming TNC mode handled by small mappings. * The demap can already be done due to another conflict * within the kpm_page. */ if (kp->kp_refcntc == -1) { /* remove go indication */ sfmmu_kpm_tsbmtl(&kp->kp_refcntc, &kpmp->khl_lock, KPMTSBM_STOP); } ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/sun4v/cpu/niagara2.c:601:1 /* to fix the color need to touch PA[32:28] */ npfn = (szc == TTE8K) ? ((pfn >> 15) << 15) : (((pfn >> 18) << 18) | ((color & 0x1c) << 13)); !! /* fix mnode if input pfn is in the wrong mnode. */ if ((pfnmn = PAPFN_2_MNODE(npfn)) != it->mi_mnode) { npfn += ((it->mi_mnode - pfnmn) & it->mi_mnode_mask) << it->mi_mnode_pfn_shift; } ****** place:initalizer_misc ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/dev/sym/sym_fw2.h:572:1 * ACK signal after this transfer. */ SCR_MOVE_ABS (1) ^ SCR_MSG_IN, HADDR_1 (msgin[0]), }/*-------------------------< MSG_IN2 >--------------------------*/,{ !! /* * Check first against 1 byte messages * that we handle from SCRIPTS. */ SCR_JUMP ^ IFTRUE (DATA (M_COMPLETE)), PADDR_A (complete), SCR_JUMP ^ IFTRUE (DATA (M_DISCONNECT)), PADDR_A (disconnect), SCR_JUMP ^ IFTRUE (DATA (M_SAVE_DP)), ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/drivers/isdn/icn/icn.c:415:1 /* *INDENT-OFF* */ static icn_stat icn_stat_table[] = { {"BCON_", ISDN_STAT_BCONN, 1}, /* B-Channel connected */ {"BDIS_", ISDN_STAT_BHUP, 2}, /* B-Channel disconnected */ !! /* ** add d-channel connect and disconnect support to link-level */ {"DCON_", ISDN_STAT_DCONN, 10}, /* D-Channel connected */ {"DDIS_", ISDN_STAT_DHUP, 11}, /* D-Channel disconnected */ {"DCAL_I", ISDN_STAT_ICALL, 3}, /* Incoming call dialup-line */ {"DSCA_I", ISDN_STAT_ICALL, 3}, /* Incoming call 1TR6-SPV */ {"FCALL", ISDN_STAT_ICALL, 4}, /* Leased line connection up */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/sound/pci/ac97/ac97_patch.c:1633:67 static const struct snd_kcontrol_new snd_ac97_controls_ad1885[] = { AC97_SINGLE("Digital Mono Direct", AC97_AD_MISC, 11, 1, 0), /* AC97_SINGLE("Digital Audio Mode", AC97_AD_MISC, 12, 1, 0), */ /* seems problematic */ AC97_SINGLE("Low Power Mixer", AC97_AD_MISC, 14, 1, 0), AC97_SINGLE("Zero Fill DAC", AC97_AD_MISC, 15, 1, 0), !! AC97_SINGLE("Headphone Jack Sense", AC97_AD_JACK_SPDIF, 9, 1, 1), /* inverted */ AC97_SINGLE("Line Jack Sense", AC97_AD_JACK_SPDIF, 8, 1, 1), /* inverted */ }; static const DECLARE_TLV_DB_SCALE(db_scale_6bit_6db_max, -8850, 150, 0); ******** @ExplanationOther @StupidComment /home/yyzhou/pad/software-os-src/opensolaris/common/io/usb/clients/usbser/usbsacm/usbsacm.c:452:6 0, /* B0 */ 50, /* B50 */ 75, /* B75 */ 110, /* B110 */ 134, /* B134 */ !! 150, /* B150 */ 200, /* B200 */ 300, /* B300 */ 600, /* B600 */ 1200, /* B1200 */ 1800, /* B1800 */ ******** @ExplanationOther @AbuseInt /home/yyzhou/pad/software-os-src/opensolaris/sun4u/montecarlo/sys/scsb.h:438:20 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, /* SLOT 1-6 */ 0x10, 0x11, 0x12, 0x13, /* SLOT 7-10 */ 0x25, 0x27, 0x30, 0x31, /* PDU/PS 1-2 */ 0x40, 0x41, 0x42, /* Disks 1-3 */ 0x32, 0x33, 0x34, /* Fans 1-3 */ !! 0x50, 0xFF, 0x35, /* Alarm Card, SCB, SSB */ 0x43, 0x44, 0x45, /* CRTM, CFTM, PRTM */ 0xFF, 0xFF, 0xFF, /* PWRDWN, SCBRR, ACINT */ 0x24, 0x26, 0x20, /* STAT0, STAT1, MPID0 */ /* Register Group 3 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, /* SLOT 1-6 */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/sun4u/opl/io/mc-opl.c:214:29 "33A", "32A", "33B", "32B", /* Bank 6 (MAC 3 bank 0) */ "31A", "30A", "31B", "30B", /* Bank 7 (MAC 3 bank 1) */ /* --------CMU1---------- */ /* --CS0-----|--CS1------ */ /* -H-|--L-- | -H- | -L-- */ !! "43A", "42A", "43B", "42B", /* Bank 0 (MAC 0 bank 0) */ "41A", "40A", "41B", "40B", /* Bank 1 (MAC 0 bank 1) */ "53A", "52A", "53B", "52B", /* Bank 2 (MAC 1 bank 0) */ "51A", "50A", "51B", "50B", /* Bank 3 (MAC 1 bank 1) */ "63A", "62A", "63B", "62B", /* Bank 4 (MAC 2 bank 0) */ "61A", "60A", "61B", "60B", /* Bank 5 (MAC 2 bank 1) */ ****** place:loop ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip/ipsecesp.c:2914:2 numalgs_snap++; saalg++; } ASSERT(numalgs_snap == num_aalgs); #ifdef DEBUG !! /* * Reality check to make sure I snagged all of the * algorithms. */ for (; i < IPSEC_MAX_ALGS; i++) { if (authalgs[i] != NULL && ALG_VALID(authalgs[i])) { cmn_err(CE_PANIC, "esp_register_out()! " "Missed aalg #%d.\n", i); } ****** place:macro_variable ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/dev/dpt/dpt_eisa.c:57:36 #define DPT_EISA_SLOT_OFFSET 0x0c00 #define DPT_EISA_EATA_REG_OFFSET 0x0088 #define DPT_EISA_DPT2402 0x12142402 /* DPT PM2012A/9X */ #define DPT_EISA_DPTA401 0x1214A401 /* DPT PM2012B/9X */ !!#define DPT_EISA_DPTA402 0x1214A402 /* DPT PM2012B2/9X */ #define DPT_EISA_DPTA410 0x1214A410 /* DPT PM2x22A/9X */ #define DPT_EISA_DPTA411 0x1214A411 /* DPT Spectre */ #define DPT_EISA_DPTA412 0x1214A412 /* DPT PM2021A/9X */ #define DPT_EISA_DPTA420 0x1214A420 /* DPT Smart Cache IV (PM2042) */ #define DPT_EISA_DPTA501 0x1214A501 /* DPT PM2012B1/9X" */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/dev/usb/ubsa.c:142:29 #define UBSA_FLOW_OXON 0x0080 #define UBSA_FLOW_IXON 0x0100 /* line status register */ #define UBSA_LSR_TSRE 0x40 /* Transmitter empty: byte sent */ !!#define UBSA_LSR_TXRDY 0x20 /* Transmitter buffer empty */ #define UBSA_LSR_BI 0x10 /* Break detected */ #define UBSA_LSR_FE 0x08 /* Framing error: bad stop bit */ #define UBSA_LSR_PE 0x04 /* Parity error */ #define UBSA_LSR_OE 0x02 /* Overrun, lost incoming byte */ #define UBSA_LSR_RXRDY 0x01 /* Byte ready in Receive Buffer */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/gnu/dev/sound/pci/emu10k1-alsa.h:130:39 #define INTE_VIRTUALSB_280 0xc0000000 /* Capture at I/O base address 0x280 */ #define INTE_VIRTUALMPU_MASK 0x30000000 /* Virtual MPU I/O port capture */ #define INTE_VIRTUALMPU_300 0x00000000 /* Capture at I/O base address 0x300-0x301 */ #define INTE_VIRTUALMPU_310 0x10000000 /* Capture at I/O base address 0x310 */ #define INTE_VIRTUALMPU_320 0x20000000 /* Capture at I/O base address 0x320 */ !!#define INTE_VIRTUALMPU_330 0x30000000 /* Capture at I/O base address 0x330 */ #define INTE_MASTERDMAENABLE 0x08000000 /* Master DMA emulation at 0x000-0x00f */ #define INTE_SLAVEDMAENABLE 0x04000000 /* Slave DMA emulation at 0x0c0-0x0df */ #define INTE_MASTERPICENABLE 0x02000000 /* Master PIC emulation at 0x020-0x021 */ #define INTE_SLAVEPICENABLE 0x01000000 /* Slave PIC emulation at 0x0a0-0x0a1 */ #define INTE_VSBENABLE 0x00800000 /* Enable virtual Soundblaster */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/FreeBSD/xfs_vfs.h:67:42 #define bhvtovfsops(bdp) ( (struct xvfsops *)BHV_OPS(bdp) ) #define VFS_BHVHEAD(vfs) ( &(vfs)->vfs_bh ) #define VFS_REMOVEBHV(vfs, bdp) ( bhv_remove(VFS_BHVHEAD(vfs), bdp) ) #define VFS_POSITION_BASE BHV_POSITION_BASE /* chain bottom */ !!#define VFS_POSITION_TOP BHV_POSITION_TOP /* chain top */ #define VFS_POSITION_INVALID BHV_POSITION_INVALID /* invalid pos. num */ typedef enum { VFS_BHV_UNKNOWN, /* not specified */ VFS_BHV_XFS, /* xfs */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/drivers/net/tokenring/smctr.h:643:48 #define INIT_SYS_CONFIG_PTR_OFFSET (RAM_SIZE-ISCP_BLOCK_SIZE) #define SCGP_BLOCK_OFFSET 0 #define SCLB_NOT_VALID 0x0000 /* Initially, SCLB not valid */ #define SCLB_VALID 0x8000 /* Host tells TRC SCLB valid */ !!#define SCLB_PROCESSED 0x0000 /* TRC says SCLB processed */ #define SCLB_RESUME_CONTROL_NOT_VALID 0x0000 /* Initially, RC not valid */ #define SCLB_RESUME_CONTROL_VALID 0x4000 /* Host tells TRC RC valid */ #define SCLB_IACK_CODE_NOT_VALID 0x0000 /* Initially, IACK not valid */ #define SCLB_IACK_CODE_VALID 0x2000 /* Host tells TRC IACK valid */ #define SCLB_CMD_NOP 0x0000 ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/include/asm-mips/sibyte/bcm1480_regs.h:164:57 #define A_BCM1480_L2_WAY_LOCAL_3_0 0x0010040100 /* x100 */ #define A_BCM1480_L2_WAY_LOCAL_7_4 0x0010040120 /* x120 */ #define A_BCM1480_L2_WAY_REMOTE_3_0 0x0010040140 /* x140 */ #define A_BCM1480_L2_WAY_REMOTE_7_4 0x0010040160 /* x160 */ #define A_BCM1480_L2_WAY_AGENT_3_0 0x00100400C0 /* xxC0 */ !!#define A_BCM1480_L2_WAY_AGENT_7_4 0x00100400E0 /* xxE0 */ #define A_BCM1480_L2_WAY_ENABLE(A, banks) (A | (((~(banks))&0x0F) << 8)) #define A_BCM1480_L2_BANK_BASE 0x00D0300000 #define A_BCM1480_L2_BANK_ADDRESS(b) (A_BCM1480_L2_BANK_BASE | (((b)&0x7)<<17)) #define A_BCM1480_L2_MGMT_TAG_BASE 0x00D0000000 ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/include/asm-parisc/grfioctl.h:51:36 #define S9000_ID_ELM S9000_ID_A1924A #define S9000_ID_98765 0x27480DEF #define S9000_ID_ELK_768 0x27482101 #define S9000_ID_STINGER 0x27A4A402 #define S9000_ID_TIMBER 0x27F12392 /* Bushmaster (710) Graphics */ !!#define S9000_ID_TOMCAT 0x27FCCB6D /* dual-headed ELK (Dual CRX) */ #define S9000_ID_ARTIST 0x2B4DED6D /* Artist (Gecko/712 & 715) onboard Graphics */ #define S9000_ID_HCRX 0x2BCB015A /* Hyperdrive/Hyperbowl (A4071A) Graphics */ #define CRX24_OVERLAY_PLANES 0x920825AA /* Overlay planes on CRX24 */ #define CRT_ID_ELK_1024 S9000_ID_ELK_768 /* Elk 1024x768 CRX */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ipf/bpf-ipf.h:197:27 * These are values from the traditional libpcap "bpf.h". * Ports of this to particular platforms should replace these definitions * with the ones appropriate to that platform, if the values are * different on that platform. */ !!#define DLT_ATM_RFC1483 11 /* LLC/SNAP encapsulated atm */ #define DLT_RAW 12 /* raw IP */ /* * These are values from BSD/OS's "bpf.h". * These are not the same as the values from the traditional libpcap ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/sys/ser_sync.h:244:22 #define SF_FDXPTP 0x1 /* Full duplex AND Point-To-Point */ #define SF_XMT_INPROG 0x2 /* Write queue is not empty */ #define SF_LINKERR 0x4 /* Underrun or CTS/DCD drop */ #define SF_FLUSH_WQ 0x8 /* */ #define SF_INITIALIZED 0x10 /* This channel programmed for this protocol */ !!#define SF_PHONY 0x20 /* Dummy frame has been sent to close frame */ #define SF_ZSH_START 0x40 /* */ /* * Bit definitions for str_state. */ #define STR_CLONE 1 /* This was opened thru clone device */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/sun4u/os/memscrub.c:169:0 /* * scan all of physical memory at least once every MEMSCRUB_PERIOD_SEC */ #define MEMSCRUB_DFL_PERIOD_SEC (12 * 60 * 60) /* 12 hours */ !!/* * scan at least MEMSCRUB_DFL_SPAN_PAGES each iteration */ #define MEMSCRUB_DFL_SPAN_PAGES ((32 * 1024 * 1024) / PAGESIZE) /* * almost anything is higher priority than scrubbing */ ****** place:unknown ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/contrib/dev/acpica/acobject.h:312:56 * Common fields for objects that support ASL notifications */ #define ACPI_COMMON_NOTIFY_INFO \ union acpi_operand_object *SystemNotify; /* Handler for system notifies */\ union acpi_operand_object *DeviceNotify; /* Handler for driver notifies */\ !! union acpi_operand_object *Handler; /* Handler for Address space */ typedef struct acpi_object_notify_common /* COMMON NOTIFY for POWER, PROCESSOR, DEVICE, and THERMAL */ { ACPI_OBJECT_COMMON_HEADER ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/contrib/opensolaris/uts/common/fs/zfs/dbuf.c:843:1 buf = arc_buf_alloc(db->db_dnode->dn_objset->os_spa, size, db, type); /* copy old block data to the new block */ obuf = db->db_buf; bcopy(obuf->b_data, buf->b_data, MIN(osize, size)); !! /* zero the remainder */ if (size > osize) bzero((uint8_t *)buf->b_data + osize, size - osize); mutex_enter(&db->db_mtx); dbuf_set_data(db, buf); ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/contrib/opensolaris/uts/common/zmod/deflate.h:65:25 /* Data structure describing a single value and its code string. */ typedef struct ct_data_s { union { ush freq; /* frequency count */ !! ush code; /* bit string */ } fc; union { ush dad; /* father node in Huffman tree */ ush len; /* length of bit string */ } dl; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/contrib/opensolaris/uts/common/zmod/trees.c:582:31 local void gen_codes (tree, max_code, bl_count) ct_data *tree; /* the tree to decorate */ int max_code; /* largest code with non zero frequency */ ushf *bl_count; /* number of codes at each bit length */ { !! ush next_code[MAX_BITS+1]; /* next code value for each bit length */ ush code = 0; /* running code value */ int bits; /* bit index */ int n; /* code index */ /* The distribution counts are first used to generate the code values ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/dev/asr/i2oexec.h:746:0 /****************************************************************************/ #define I2O_EXEC_STATUS_GET_RESERVED_SZ 16 !!/* ExecStatusGet Function Message Frame structure. */ typedef struct _I2O_EXEC_STATUS_GET_MESSAGE { U8 VersionOffset; U8 MsgFlags; U16 MessageSize; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/dev/esp/ncr53c9xvar.h:176:16 struct ncr53c9x_linfo { int64_t lun; LIST_ENTRY(ncr53c9x_linfo) link; time_t last_used; !! u_char used; /* # slots in use */ u_char avail; /* where to start scanning */ u_char busy; struct ncr53c9x_ecb *untagged; struct ncr53c9x_ecb *queued[NCR_TAG_DEPTH]; }; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/net/llc/llc_c_st.c:610:0 [9] = &llc_setup_state_trans_4, [10] = &llc_setup_state_trans_5, [11] = &llc_common_state_trans_end, }; !!/* LLC_CONN_STATE_NORMAL transitions */ /* State transitions for LLC_CONN_EV_DATA_REQ event */ static llc_conn_ev_qfyr_t llc_normal_ev_qfyrs_1[] = { [0] = llc_conn_ev_qlfy_remote_busy_eq_0, [1] = llc_conn_ev_qlfy_p_flag_eq_0, [2] = llc_conn_ev_qlfy_last_frame_eq_0, ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/ib/mgt/ibcm/ibcm_ti.c:766:2 ib_gid_t tmp_gid; req_msgp->req_alt_l_port_lid = h2b16(alternate_slid); req_msgp->req_alt_r_port_lid = h2b16(IBCM_ALT_ADDS_VECT(chan_args).av_dlid); !! /* * doing all this as req_alt_r/l_port_gid is at offset * 100, 116 which is not divisible by 8 */ tmp_gid.gid_prefix = h2b64(IBCM_ALT_ADDS_VECT(chan_args).av_dgid.gid_prefix); tmp_gid.gid_guid = h2b64(IBCM_ALT_ADDS_VECT(chan_args).av_dgid.gid_guid); ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/pckt.c:657:3 case M_READ: if ((mp = pckt_reallocb(q, mp)) == (mblk_t *)0) return ((mblk_t *)0); !! /* change the size_t to size32_t for ILP32 */ *(size32_t *)mp->b_rptr = *(size_t *)mp->b_rptr; mp->b_wptr = mp->b_rptr + sizeof (size32_t); break; } break; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/sys/ib/mgt/ibcm/ibcm_impl.h:1084:0 ibcm_alloc_out_msg(ibmf_handle_t ibmf_handle, ibmf_msg_t **ibmf_msgpp, uint8_t method); ibcm_status_t ibcm_free_out_msg(ibmf_handle_t ibmf_handle, ibmf_msg_t **ibmf_msgpp); !!/* * Definition for CM state transition processing function */ typedef void (*ibcm_state_handler_t)(ibcm_hca_info_t *hcap, uint8_t *cm_input_mad, ibcm_mad_addr_t *cm_mad_addr); /* * CM REQ Message structure ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/sys/net80211.h:132:4 /* ic_flags_ext */ #define IEEE80211_FEXT_WDS 0x00000001 /* CONF: 4 addr allowed */ /* 0x00000006 reserved */ #define IEEE80211_FEXT_BGSCAN 0x00000008 !! /* STATUS: enable full bgscan completion */ #define IEEE80211_FEXT_ERPUPDATE 0x00000200 /* STATUS: update ERP element */ #define IEEE80211_FEXT_SWBMISS 0x00000400 /* CONF: do bmiss in s/w */ /* * Channel attributes (ich_flags) ****** place:variable ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_itable.c:311:21 int ubleft; /* bytes left in user's buffer */ char __user *ubufp; /* pointer into user's buffer */ int ubelem; /* spaces used in user's buffer */ int ubused; /* bytes used by formatter */ xfs_buf_t *bp; /* ptr to on-disk inode cluster buf */ !! xfs_dinode_t *dip; /* ptr into bp for specific inode */ xfs_inode_t *ip; /* ptr to in-core inode struct */ /* * Get the last inode value, see if there's nothing to do. */ ******** @ExplanationOther @OsRegister /home/yyzhou/pad/software-os-src/freebsd/kern/kern_shutdown.c:129:28 int dumping; /* system is dumping */ int rebooting; /* system is rebooting */ static struct dumperinfo dumper; /* our selected dumper */ /* Context information for dump-debuggers. */ !!static struct pcb dumppcb; /* Registers. */ static lwpid_t dumptid; /* Thread ID. */ static void boot(int) __dead2; static void poweroff_wait(void *, int); static void shutdown_halt(void *junk, int howto); ******** @ExplanationOther /home/yyzhou/pad/software-os-src/freebsd/netinet/sctp_output.c:4854:2 memcpy(&stc.laddress, &addr->address.sin6.sin6_addr, sizeof(struct in6_addr)); stc.laddr_type = SCTP_IPV6_ADDRESS; sctp_free_ifa(addr); } } else { !! /* set the scope per the existing tcb */ struct sctp_nets *lnet; stc.loopback_scope = asoc->loopback_scope; stc.ipv4_scope = asoc->ipv4_local_scope; stc.site_scope = asoc->site_scope; ******** @ExplanationOther /home/yyzhou/pad/software-os-src/linux/fs/xfs/xfs_dir2_sf.c:973:20 xfs_da_args_t *args) /* operation arguments */ { xfs_inode_t *dp; /* incore directory inode */ int i; /* entry index */ #if XFS_BIG_INUMS || defined(DEBUG) !! xfs_ino_t ino=0; /* entry old inode number */ #endif #if XFS_BIG_INUMS int i8elevated; /* sf_toino8 set i8count=1 */ #endif xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */ ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/fs/dev/sdev_netops.c:382:0 devnet_inactive(struct vnode *dvp, struct cred *cred, caller_context_t *ct) { devname_inactive_func(dvp, cred, devnet_inactive_callback); } !!/* * We override lookup and readdir to build entries based on the * in kernel vanity naming node table. */ const fs_operation_def_t devnet_vnodeops_tbl[] = { VOPNAME_READDIR, { .vop_readdir = devnet_readdir }, VOPNAME_LOOKUP, { .vop_lookup = devnet_lookup }, VOPNAME_INACTIVE, { .vop_inactive = devnet_inactive }, VOPNAME_CREATE, { .error = fs_nosys }, ******** @ExplanationOther /home/yyzhou/pad/software-os-src/opensolaris/common/os/bio.c:84:31 /* when looking for free buffers */ #define bio_bhash(dev, bn) (hash2ints((dev), (int)(bn)) & v.v_hmask) #define EMPTY_LIST ((struct buf *)-1) !!static kcondvar_t bio_mem_cv; /* Condition variables */ static kcondvar_t bio_flushinval_cv; static int bio_doingflush; /* flush in progress */ static int bio_doinginval; /* inval in progress */ static int bio_flinv_cv_wanted; /* someone waiting for cv */ *** @OtherOther ****** place:assign ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/i386/svr4/svr4_machdep.c:433:25 PROC_LOCK_ASSERT(p, MA_OWNED); sig = ksi->ksi_signo; #if defined(DEBUG_SVR4) printf("svr4_sendsig(%d)\n", sig); #endif !! code = ksi->ksi_trapno; /* use trap No. */ psp = p->p_sigacts; mtx_assert(&psp->ps_mtx, MA_OWNED); tf = td->td_frame; oonstack = sigonstack(tf->tf_esp); ******** @OtherOther /home/yyzhou/pad/software-os-src/opensolaris/common/os/mem_cage.c:1481:12 /* * Assimilate more pages from the global page pool into the cage. */ n = 0; /* number of pages PP_SETNORELOC'd */ !! nf = 0; /* number of those actually free */ while (kcage_on && nf < wanted) { pfn = kcage_get_pfn(1); if (pfn == PFN_INVALID) { /* eek! no where to grow */ KCAGE_STAT_INCR(ke_nopfn); goto terminate; ****** place:assignfield ******** @OtherOther @OsEndian /home/yyzhou/pad/software-os-src/opensolaris/sun4u/io/pci/pcipsy.c:344:1 ddi_driver_name(dip), ddi_get_instance(dip)); ddi_regs_map_free(&pci_p->pci_ac[0]); return (DDI_FAILURE); } !! /* * The second register set contains the bridge's configuration * header. This header is at the very beginning of the bridge's * configuration space. This space has litte-endian byte order. */ attr.devacc_attr_endian_flags = DDI_STRUCTURE_LE_ACC; if (ddi_regs_map_setup(dip, 1, &pci_p->pci_address[1], 0, PCI_CONF_HDR_SIZE, &attr, &pci_p->pci_ac[1]) != DDI_SUCCESS) { cmn_err(CE_WARN, "%s%d: unable to map reg entry 1\n", ******** @OtherOther /home/yyzhou/pad/software-os-src/opensolaris/sun4u/snowbird/io/todds1307/todds1307.c:528:24 /* now read again */ /* Start reading reg from 0x00 */ i2c_tp->i2c_wbuf[0] = (uchar_t)0x00; i2c_tp->i2c_wlen = 1; /* Write one byte address */ !! i2c_tp->i2c_rlen = 7; /* Read 7 regs */ if ((i2c_cmd_status = i2c_transfer(statep->ds1307_i2c_hdl, i2c_tp)) != I2C_SUCCESS) { drv_usecwait(I2C_DELAY); goto done; } ****** place:assignop_logic ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/net/ppp_tty.c:456:37 if (error) break; s = spltty(); bcopy(data, sc->sc_asyncmap, sizeof(sc->sc_asyncmap)); sc->sc_asyncmap[1] = 0; /* mustn't escape 0x20 - 0x3f */ !! sc->sc_asyncmap[2] &= ~0x40000000; /* mustn't escape 0x5e */ sc->sc_asyncmap[3] |= 0x60000000; /* must escape 0x7d, 0x7e */ splx(s); break; case PPPIOCGXASYNCMAP: ******** @OtherOther /home/yyzhou/pad/software-os-src/linux/drivers/net/sky2.c:604:3 } else if (hw->chip_id != CHIP_ID_YUKON_EX) { /* no effect on Yukon-XL */ gm_phy_write(hw, port, PHY_MARV_LED_CTRL, ledctrl); if (sky2->autoneg == AUTONEG_DISABLE || sky2->speed == SPEED_100) { !! /* turn on 100 Mbps LED (LED_LINK100) */ ledover |= PHY_M_LED_MO_100; } if (ledover) gm_phy_write(hw, port, PHY_MARV_LED_OVER, ledover); ****** place:case ******** @OtherOther @AbuseInt /home/yyzhou/pad/software-os-src/linux/arch/alpha/kernel/err_titan.c:49:9 nxs = EXTRACT(c_misc, TITAN__CCHIP_MISC__NXS); switch(nxs) { case 0: /* CPU 0 */ case 1: /* CPU 1 */ !! case 2: /* CPU 2 */ case 3: /* CPU 3 */ src = "CPU"; /* num is already the CPU number */ break; case 4: /* Pchip 0 */ ****** place:enum_value ******** @OtherOther @OsRegister /home/yyzhou/pad/software-os-src/opensolaris/common/io/ath/ath_hal.h:441:28 HAL_INT_RXKCM = 0x00008000, HAL_INT_SWBA = 0x00010000, HAL_INT_BMISS = 0x00040000, HAL_INT_BNR = 0x00100000, /* Non-common mapping */ HAL_INT_TIM = 0x00200000, /* Non-common mapping */ !! HAL_INT_DTIM = 0x00400000, /* Non-common mapping */ HAL_INT_DTIMSYNC = 0x00800000, /* Non-common mapping */ HAL_INT_GPIO = 0x01000000, HAL_INT_CABEND = 0x02000000, /* Non-common mapping */ HAL_INT_FATAL = 0x40000000, /* Non-common mapping */ HAL_INT_GLOBAL = INT_MIN, /* Set/clear IER */ ******** @OtherOther @LangLimitation @StupidComment /home/yyzhou/pad/software-os-src/opensolaris/common/io/pcwl/pcwl.h:655:25 WLC_TX_DEFERRED_XMITS, /* 5+ */ WLC_TX_SINGLE_RETRIES, /* 6+ */ WLC_TX_MULTI_RETRIES, /* 7+ */ WLC_TX_RETRY_LIMIT, /* 8+ */ WLC_TX_DISCARDS, /* 9+ */ !! WLC_RX_UNICAST_FRAMES, /* 10+ */ WLC_RX_MULTICAST_FRAMES, /* 11+ */ WLC_RX_FRAGMENTS, /* 12+ */ WLC_RX_UNICAST_OCTETS, /* 13+ */ WLC_RX_MULTICAST_OCTETS, /* 14 */ WLC_RX_FCS_ERRORS, /* 15+ */ ****** place:field ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/dev/an/if_anreg.h:451:27 int port_rid; /* resource id for port range */ struct resource* port_res; /* resource for port range */ int mem_rid; /* resource id for memory range */ int mem_used; /* nonzero if memory used */ !! struct resource* mem_res; /* resource for memory range */ int mem_aux_rid; /* resource id for memory range */ int mem_aux_used; /* nonzero if memory used */ struct resource* mem_aux_res; /* resource for memory range */ int irq_rid; /* resource id for irq */ void* irq_handle; /* handle for irq handler */ ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/dev/ncv/ncr53c500var.h:43:34 /***************************************************************** * Host adapter structure *****************************************************************/ struct ncv_softc { !! struct scsi_low_softc sc_sclow; /* generic data */ #ifdef __NetBSD__ bus_space_tag_t sc_iot; bus_space_tag_t sc_memt; bus_space_handle_t sc_ioh; ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/dev/sr/if_sr.c:116:12 #ifndef NETGRAPH struct ifnet *ifp; /* PPP service w/in system */ #endif /* NETGRAPH */ struct sr_hardc *hc; /* card-level information */ !! int unit; /* With regard to all sr devices */ int subunit; /* With regard to this card */ struct buf_block { u_int txdesc; /* DPRAM offset */ u_int txstart;/* DPRAM offset */ ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/netinet6/ip6_var.h:194:25 u_quad_t ip6s_fragmented; /* datagrams successfully fragmented */ u_quad_t ip6s_ofragments; /* output fragments created */ u_quad_t ip6s_cantfrag; /* don't fragment flag was set, etc. */ u_quad_t ip6s_badoptions; /* error in option processing */ u_quad_t ip6s_noroute; /* packets discarded due to no route */ !! u_quad_t ip6s_badvers; /* ip6 version != 6 */ u_quad_t ip6s_rawout; /* total raw ip packets generated */ u_quad_t ip6s_badscope; /* scope error */ u_quad_t ip6s_notmember; /* don't join this multicast group */ u_quad_t ip6s_nxthist[256]; /* next header history */ u_quad_t ip6s_m1; /* one mbuf */ ******** @OtherOther /home/yyzhou/pad/software-os-src/linux/include/linux/cramfs_fs.h:63:27 __u32 flags; /* feature flags */ __u32 future; /* reserved for future use */ __u8 signature[16]; /* "Compressed ROMFS" */ struct cramfs_info fsid; /* unique filesystem info */ __u8 name[16]; /* user-defined name */ !! struct cramfs_inode root; /* root inode data */ }; /* * Feature flags * ******** @OtherOther /home/yyzhou/pad/software-os-src/linux/include/linux/ibmtr.h:220:19 enum {NO, YES} open_failure; unsigned char readlog_pending; unsigned short adapter_int_enable; /* Adapter-specific int enable */ struct timer_list tr_timer; unsigned char ring_speed; !! spinlock_t lock; /* SMP protection */ }; /* token ring adapter commands */ #define DIR_INTERRUPT 0x00 /* struct srb_interrupt */ #define DIR_MOD_OPEN_PARAMS 0x01 ******** @OtherOther /home/yyzhou/pad/software-os-src/opensolaris/common/sys/videodev2.h:1228:1 struct v4l2_sliced_vbi_format { uint16_t service_set; !! /* * service_lines[0][...] specifies lines 0-23 (1-23 used) of the first * field * service_lines[1][...] specifies lines 0-23 (1-23 used) of the second * field * (equals frame lines 313-336 for 625 line video standards, * 263-286 for 525 line standards) */ uint16_t service_lines[2][24]; uint32_t io_size; uint32_t reserved[2]; /* must be zero */ }; ****** place:funcall ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/amd64/amd64/vm_machdep.c:440:3 cpu_reset_proxyid = PCPU_GET(cpuid); cpustop_restartfunc = cpu_reset_proxy; cpu_reset_proxy_active = 0; printf("cpu_reset: Restarting BSP\n"); !! /* Restart CPU #0. */ atomic_store_rel_int(&started_cpus, 1 << 0); cnt = 0; while (cpu_reset_proxy_active == 0 && cnt < 10000000) cnt++; /* Wait for BSP to announce restart */ ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/dev/fatm/if_fatm.c:506:2 m_free(rb->m); rb->m = NULL; LIST_INSERT_HEAD(&sc->rbuf_free, rb, link); } !! /* Unwait any waiters */ wakeup(&sc->sadi_mem); /* wakeup all threads waiting for STAT or REG buffers */ cv_broadcast(&sc->cv_stat); cv_broadcast(&sc->cv_regs); ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_bmap.c:3510:1 arp++; cnt++; } } ASSERT(cnt == XFS_IFORK_NEXTENTS(ip, whichfork)); ablock->bb_numrecs = cpu_to_be16(cnt); !! /* * Fill in the root key and pointer. */ kp = XFS_BMAP_KEY_IADDR(block, 1, cur); arp = XFS_BMAP_REC_IADDR(ablock, 1, cur); INT_SET(kp->br_startoff, ARCH_CONVERT, xfs_bmbt_disk_get_startoff(arp)); pp = XFS_BMAP_PTR_IADDR(block, 1, cur); INT_SET(*pp, ARCH_CONVERT, args.fsbno); ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/i386/i386/trap.c:981:3 /* * Need to check if this is a 32 bit or 64 bit syscall. * fuword is MP aware. */ if (code == SYS_syscall) { !! /* * Code is first argument, followed by actual args. */ code = fuword(params); params += sizeof(int); } else if (code == SYS___syscall) { /* * Like syscall, but code is a quad, so as to maintain ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/netatm/uni/uniarp_timer.c:126:2 * (if it's up at the moment) */ if (uip->uip_arpstate == UIAS_CLIENT_ACTIVE) (void) uniarp_arp_req(uip, &uap->ua_dstip); !! /* * Restart retry timer */ UNIARP_TIMER(uap, UNIARP_ARP_RETRY); } return; } ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/netgraph/ng_base.c:2126:1 CTR4(KTR_NET, "%20s: node [%x] (%p) acquired item %p", __func__, ngq->q_node->nd_ID, ngq->q_node, item); return (item); } !! /* * and queue the request for later. */ ng_queue_rw(ngq, item, NGQRW_W); NG_QUEUE_UNLOCK(ngq); return (NULL); } ******** @OtherOther /home/yyzhou/pad/software-os-src/linux/arch/arm/vfp/vfpmodule.c:302:1 * the FPEXC.FP2V bit is valid only if FPEXC.EX is 1. */ if (fpexc ^ (FPEXC_EX | FPEXC_FP2V)) return; !! /* * The barrier() here prevents fpinst2 being read * before the condition above. */ barrier(); trigger = fmrx(FPINST2); emulate: exceptions = vfp_emulate_instruction(trigger, orig_fpscr, regs); ******** @OtherOther @OsBlocking @CondRelated /home/yyzhou/pad/software-os-src/linux/drivers/mmc/core/sdio.c:379:1 return 0; remove_added: !! /* Remove without lock if the device has been added. */ mmc_sdio_remove(host); mmc_claim_host(host); remove: /* And with lock if it hasn't been added. */ if (host->card) ******** @OtherOther /home/yyzhou/pad/software-os-src/linux/drivers/net/hamradio/dmascc.c:493:1 priv->register_lock = &info->register_lock; /* Reset SCC */ write_scc(priv, R9, FHWRES | MIE | NV); !! /* Determine type of chip by enabling SDLC/HDLC enhancements */ write_scc(priv, R15, SHDLCE); if (!read_scc(priv, R15)) { /* WR7' not present. This is an ordinary Z8530 SCC. */ chip = Z8530; } else { ******** @OtherOther @AbuseInt /home/yyzhou/pad/software-os-src/linux/drivers/usb/misc/usbtest.c:1114:1 static int unlink_simple (struct usbtest_dev *dev, int pipe, int len) { int retval = 0; !! /* test sync and async paths */ retval = unlink1 (dev, pipe, len, 1); if (!retval) retval = unlink1 (dev, pipe, len, 0); return retval; } ******** @OtherOther /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip/icmp.c:4185:1 */ mp = ip_unbind(q, mp); ASSERT(mp != NULL); ASSERT(((struct T_ok_ack *)mp->b_rptr)->PRIM_type == T_OK_ACK); !! /* * Once we're unbound from IP, the pending operation may be cleared * here. */ rw_enter(&icmp->icmp_rwlock, RW_WRITER); V6_SET_ZERO(icmp->icmp_v6src); V6_SET_ZERO(icmp->icmp_bound_v6src); icmp->icmp_pending_op = -1; icmp->icmp_state = TS_UNBND; ******** @OtherOther @OsRegister /home/yyzhou/pad/software-os-src/opensolaris/sun4/io/pcicfg.e.c:3072:1 "max-latency", byteval)) != DDI_SUCCESS) { return (ret); } } !! /* * These should always exist and have the value of the * corresponding register value */ val = pci_config_get16(config_handle, PCI_CONF_VENID); if ((ret = ndi_prop_update_int(DDI_DEV_T_NONE, dip, "vendor-id", val)) != DDI_SUCCESS) { return (ret); ****** place:function ******** @OtherOther /home/yyzhou/pad/software-os-src/opensolaris/common/os/sunmdi.c:8917:0 } MDI_VHCI_PHCI_UNLOCK(vh); } !!/* * mdi_walk_vhcis(): * Walker routine to traverse vhci dev_info nodes */ void mdi_walk_vhcis(int (*f)(dev_info_t *, void *), void *arg) { mdi_vhci_t *vh = NULL; ******** @OtherOther /home/yyzhou/pad/software-os-src/opensolaris/sun4u/montecarlo/io/scsb.c:3749:0 error = scsb_rdwr_register(scsb, I2C_WR_RD, reg, SCTRL_BHLTHY_NUMREGS, &scsb->scsb_data_reg[index], 1); return (error); } !!/* * Returns the health status of a slot */ int scsb_read_slot_health(scsb_state_t *scsb, int pslotnum) { int slotnum = tonga_psl_to_ssl(scsb, pslotnum); return (scsb_fru_op(scsb, SLOT, slotnum, ****** place:function_misc ******** @OtherOther /home/yyzhou/pad/software-os-src/linux/drivers/media/video/zoran_card.c:1016:52 zr->v4l_pend_tail = 0; zr->v4l_pend_head = 0; zr->v4l_sync_tail = 0; zr->v4l_buffers.active = ZORAN_FREE; for (i = 0; i < VIDEO_MAX_FRAME; i++) { !! zr->v4l_buffers.buffer[i].state = BUZ_STATE_USER; /* nothing going on */ } zr->v4l_buffers.allocated = 0; for (i = 0; i < BUZ_MAX_FRAME; i++) { zr->jpg_buffers.buffer[i].state = BUZ_STATE_USER; /* nothing going on */ ******** @OtherOther @Devil /home/yyzhou/pad/software-os-src/linux/drivers/net/sk98lin/skxmac2.c:1358:1 SK_IN16(IoC, (B2_MAC_2 + Port * 8 + i * 2), &SWord); XM_OUT16(IoC, Port, (XM_SA + i * 2), SWord); } !! /* Tx Inter Packet Gap (XM_TX_IPG): use default */ /* Tx High Water Mark (XM_TX_HI_WM): use default */ /* Tx Low Water Mark (XM_TX_LO_WM): use default */ /* Host Request Threshold (XM_HT_THR): use default */ /* Rx Request Threshold (XM_RX_THR): use default */ /* Rx Low Water Mark (XM_RX_LO_WM): use default */ ******** @OtherOther @AbuseInt /home/yyzhou/pad/software-os-src/opensolaris/common/fs/zfs/dsl_prop.c:505:4 } VERIFY(nvlist_add_string(propval, ZPROP_VALUE, tmp) == 0); kmem_free(tmp, za.za_num_integers); } else { !! /* * Integer property */ ASSERT(za.za_integer_length == 8); (void) nvlist_add_uint64(propval, ZPROP_VALUE, za.za_first_integer); } ******** @OtherOther /home/yyzhou/pad/software-os-src/opensolaris/common/rpc/rpcib.c:993:2 /* * Treat xid as opaque (xid is the first entity * in the rpc rdma message). */ xid = *(uint32_t *)(uintptr_t)rwid->addr; !! /* Skip xid and set the xdr position accordingly. */ XDR_SETPOS(xdrs, sizeof (uint32_t)); (void) xdr_u_int(xdrs, &vers); (void) xdr_u_int(xdrs, &op); XDR_DESTROY(xdrs); if (vers != RPCRDMA_VERS) { ******** @OtherOther /home/yyzhou/pad/software-os-src/opensolaris/sun4u/snowbird/io/todds1307/todds1307.c:717:41 todds1307_prom_getdate(struct rtc_t *rtc) { int year; cell_t ci[12]; !! ci[0] = p1275_ptr2cell("call-method"); /* Service name */ ci[1] = 2; /* # of arguments */ ci[2] = 7; /* # of result cells */ ci[3] = p1275_ptr2cell("get-time"); ci[4] = p1275_ihandle2cell(todds1307_ihandle); ****** place:if ******** @OtherOther @LotsOfInfo @CondRelated /home/yyzhou/pad/software-os-src/freebsd/kern/vfs_bio.c:466:1 * physmem_est is in pages. Convert it to kilobytes (assumes * PAGE_SIZE is >= 1K) */ physmem_est = physmem_est * (PAGE_SIZE / 1024); !! /* * The nominal buffer size (and minimum KVA allocation) is BKVASIZE. * For the first 64MB of ram nominally allocate sufficient buffers to * cover 1/4 of our ram. Beyond the first 64MB allocate additional * buffers to cover 1/10 of our ram over 64MB. When auto-sizing * the buffer cache we limit the eventual kva reservation to * maxbcache bytes. * * factor represents the 1/4 x ram conversion. */ if (nbuf == 0) { int factor = 4 * BKVASIZE / 1024; nbuf = 50; if (physmem_est > 4096) ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/netipsec/xform_ipcomp.c:541:2 goto bad; } ipcompstat.ipcomps_hist[sav->alg_comp]++; if (rlen > crp->crp_olen) { !! /* Adjust the length in the IP header */ switch (sav->sah->saidx.dst.sa.sa_family) { #ifdef INET case AF_INET: mtod(m, struct ip *)->ip_len = htons(m->m_pkthdr.len); break; ******** @OtherOther /home/yyzhou/pad/software-os-src/linux/fs/dquot.c:1252:1 out_sub: inode_sub_bytes(inode, number); return QUOTA_OK; } down_read(&sb_dqopt(inode->i_sb)->dqptr_sem); !! /* Now recheck reliably when holding dqptr_sem */ if (IS_NOQUOTA(inode)) { up_read(&sb_dqopt(inode->i_sb)->dqptr_sem); goto out_sub; } spin_lock(&dq_data_lock); ******** @OtherOther /home/yyzhou/pad/software-os-src/opensolaris/common/fs/nfs/nfs3_xdr.c:1980:2 return (FALSE); break; } !! /* * fileid3 fileid */ if (!xdr_u_longlong_t(xdrs, (u_longlong_t *)&fileid)) return (FALSE); /* * filename3 name ****** place:initalizer_misc ******** @OtherOther @AbuseInt @OsRegister /home/yyzhou/pad/software-os-src/freebsd/dev/ieee488/tnt4882.c:175:18 {WT, dcr, 0x55}, /* Write pattern to GPIB data lines */ {RD, bsr, 0xAA}, /* Verify ATN, NDAC, EOI, & IFC are set */ {RD, dsr, 0x55}, /* Verify data pattern written previously */ {WT, bcr, 0x00}, /* Clear control lines */ {WT, dcr, 0x00}, /* Clear data lines */ !! {RD, bsr, 0x00}, /* Verify control lines are clear */ {RD, dsr, 0x00}, /* Verify data lines are clear */ {END, 0, 0} }; static struct tst tst_adr0_1[] = { ******** @OtherOther @AbuseInt /home/yyzhou/pad/software-os-src/freebsd/dev/usb/ugraphire_rdesc.h:171:35 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */ 0x09, 0x00, /* USAGE (Undefined) */ 0x85, 0x02, /* REPORT_ID (2) */ 0x95, 0x01, /* REPORT_COUNT (1) */ 0xb1, 0x02, /* FEATURE (Data,Var,Abs) */ !! 0x09, 0x00, /* USAGE (Undefined) */ 0x85, 0x03, /* REPORT_ID (3) */ 0x95, 0x01, /* REPORT_COUNT (1) */ 0xb1, 0x02, /* FEATURE (Data,Var,Abs) */ 0xc0 /* END_COLLECTION */ }; ******** @OtherOther /home/yyzhou/pad/software-os-src/linux/arch/x86/kernel/pci-calgary_64.c:110:8 #define MAX_PHB_BUS_NUM (MAX_NUM_OF_PHBS * MAX_NUM_CHASSIS * 2) #define PHBS_PER_CALGARY 4 /* register offsets in Calgary's internal register space */ static const unsigned long tar_offsets[] = { !! 0x0580 /* TAR0 */, 0x0588 /* TAR1 */, 0x0590 /* TAR2 */, 0x0598 /* TAR3 */ }; ******** @OtherOther /home/yyzhou/pad/software-os-src/opensolaris/intel/dtrace/dtrace_isa.c:561:11 REG_RDI, /* EDI */ REG_RSI, /* ESI */ REG_RBP, /* EBP */ REG_RSP, /* ESP */ REG_RBX, /* EBX */ !! REG_RDX, /* EDX */ REG_RCX, /* ECX */ REG_RAX, /* EAX */ REG_TRAPNO, /* TRAPNO */ REG_ERR, /* ERR */ REG_RIP, /* EIP */ ****** place:loop ******** @OtherOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/igb/igb_manage.c:321:1 length -= remaining; /* Calculate length in DWORDs */ length >>= 2; !! /* * The device driver writes the relevant command block into the * ram area. */ for (i = 0; i < length; i++) { for (j = 0; j < sizeof (u32); j++) { *(tmp + j) = *bufptr++; *sum += *(tmp + j); } ****** place:macro_function ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/i386/i386/bpf_jit_machdep.h:254:0 emitm(&stream, 0x23, 1); \ emitm(&stream, \ (3 << 6) | ((dr32 & 0x7) << 3) | (sr32 & 0x7), 1); \ } while (0) !!/* or dr32,sr32 */ #define ORrd(dr32, sr32) do { \ emitm(&stream, 0x0b, 1); \ emitm(&stream, \ (3 << 6) | ((dr32 & 0x7) << 3) | (sr32 & 0x7), 1); \ } while (0) ****** place:macro_variable ******** @OtherOther @AbuseMacro /home/yyzhou/pad/software-os-src/freebsd/arm/include/_inttypes.h:89:22 #define PRIo64 "llo" /* uint64_t */ #define PRIoLEAST8 "o" /* uint_least8_t */ #define PRIoLEAST16 "o" /* uint_least16_t */ #define PRIoLEAST32 "o" /* uint_least32_t */ #define PRIoLEAST64 "llo" /* uint_least64_t */ !!#define PRIoFAST8 "o" /* uint_fast8_t */ #define PRIoFAST16 "o" /* uint_fast16_t */ #define PRIoFAST32 "o" /* uint_fast32_t */ #define PRIoFAST64 "llo" /* uint_fast64_t */ #define PRIoMAX "jo" /* uintmax_t */ #define PRIoPTR "o" /* uintptr_t */ ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/dev/pccbb/pccbbreg.h:82:32 #define CBB_IOALIGN 4 #define CBB_IOALIGN_BITS 2 #define CBBR_INTRLINE 0x3c /* len=1 */ #define CBBR_INTRPIN 0x3d /* len=1 */ !!#define CBBR_BRIDGECTRL 0x3e /* len=2 */ # define CBBM_BRIDGECTRL_MASTER_ABORT 0x0020 # define CBBM_BRIDGECTRL_RESET 0x0040 # define CBBM_BRIDGECTRL_INTR_IREQ_ISA_EN 0x0080 # define CBBM_BRIDGECTRL_PREFETCH_0 0x0100 # define CBBM_BRIDGECTRL_PREFETCH_1 0x0200 ******** @OtherOther @OsRegister /home/yyzhou/pad/software-os-src/freebsd/dev/safe/safereg.h:43:0 #define BS_TRDY_TIMEOUT 0x40 /* TRDY timeout */ #define BS_RETRY_TIMEOUT 0x41 /* DMA retry timeout */ #define PCI_VENDOR_SAFENET 0x16ae /* SafeNet, Inc. */ !!/* SafeNet */ #define PCI_PRODUCT_SAFEXCEL 0x1141 /* 1141 */ #define SAFE_PE_CSR 0x0000 /* Packet Enginge Ctrl/Status */ #define SAFE_PE_SRC 0x0004 /* Packet Engine Source */ #define SAFE_PE_DST 0x0008 /* Packet Engine Destination */ ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/netgraph/bluetooth/include/ng_l2cap.h:557:0 u_int16_t result; /* 0x00 - success */ u_int16_t info_size; /* size of info data in bytes */ /* u_int8_t info_data[] -- info data */ } ng_l2cap_l2ca_get_info_op; !!/* L2CA_EnableCLT/L2CA_DisableCLT */ #define NGM_L2CAP_L2CA_ENABLE_CLT 0x91 /* Upper -> L2CAP */ typedef struct { u_int16_t psm; /* Protocol/Service Multiplexor */ u_int16_t enable; /* 0x00 - disable */ ******** @OtherOther /home/yyzhou/pad/software-os-src/linux/drivers/s390/scsi/zfcp_def.h:631:0 #define ZFCP_STATUS_PORT_PHYS_CLOSING 0x00000004 #define ZFCP_STATUS_PORT_NO_WWPN 0x00000008 #define ZFCP_STATUS_PORT_NO_SCSI_ID 0x00000010 #define ZFCP_STATUS_PORT_INVALID_WWPN 0x00000020 !!/* for ports with well known addresses */ #define ZFCP_STATUS_PORT_WKA \ (ZFCP_STATUS_PORT_NO_WWPN | \ ZFCP_STATUS_PORT_NO_SCSI_ID) /* logical unit status */ ******** @OtherOther /home/yyzhou/pad/software-os-src/linux/sound/pci/echoaudio/mona.c:36:25 /* Pipe indexes */ #define PX_ANALOG_OUT 0 /* 6 */ #define PX_DIGITAL_OUT 6 /* 8 */ #define PX_ANALOG_IN 14 /* 4 */ !!#define PX_DIGITAL_IN 18 /* 8 */ #define PX_NUM 26 /* Bus indexes */ #define BX_ANALOG_OUT 0 /* 6 */ #define BX_DIGITAL_OUT 6 /* 8 */ ****** place:return ******** @OtherOther @StupidComment /home/yyzhou/pad/software-os-src/opensolaris/sparc/fpu/fpu_simulator.c:271:33 return (fmovcc(pfpsd, inst, pfsr)); /* fmovcc */ } else if ((inst.opcode & 0x7) == 1) { if ((fp_notp) && (inst.prec == 0)) return (ftt_unimplemented); FPUINFO_KSTAT(fpu_sim_fmovr); !! return (fmovr(pfpsd, inst)); /* fmovr */ } } /* ibit not valid for fpop1 instructions */ if ((fp_notp) && (inst.ibit != 0)) return (ftt_unimplemented); ****** place:struct ******** @OtherOther @OsArchIndependent /home/yyzhou/pad/software-os-src/linux/net/compat.c:318:0 * usage counts incremented, so we just free the list. */ __scm_destroy(scm); } !!/* * A struct sock_filter is architecture independent. */ struct compat_sock_fprog { u16 len; compat_uptr_t filter; /* struct sock_filter * */ }; ****** place:struct_misc ******** @OtherOther /home/yyzhou/pad/software-os-src/opensolaris/common/inet/mib2.h:767:2 unsigned ipv6RoutePolicy; /* sec's since last update of route { ipv6RouteEntry 9} */ int ipv6RouteAge; /* Routing domain ID of the next hop { ipv6RouteEntry 10 } */ unsigned ipv6RouteNextHopRDI; !! /* route metric { ipv6RouteEntry 11 } */ unsigned ipv6RouteMetric; /* preference (impl specific) { ipv6RouteEntry 12 } */ unsigned ipv6RouteWeight; /* additional info from ire's { } */ struct ipv6RouteInfo_s { ****** place:unknown ******** @OtherOther @OsSpecific /home/yyzhou/pad/software-os-src/freebsd/dev/aic7xxx/aic7xxx.h:618:24 * Any lookups to entries at or * above AHC_SCB_MAX_ALLOC will * always fail. */ struct hardware_scb *hscbs; /* Array of hardware SCBs */ !! struct scb *scbarray; /* Array of kernel SCBs */ struct scsi_sense_data *sense; /* Per SCB sense data */ u_int recovery_scbs; /* Transactions currently in recovery */ /* ******** @OtherOther /home/yyzhou/pad/software-os-src/linux/fs/xfs/xfs_dir2_sf.c:1112:24 * Convert from 8-byte inode numbers to 4-byte inode numbers. * The last 8-byte inode number is gone, but the count is still 1. */ static void xfs_dir2_sf_toino4( !! xfs_da_args_t *args) /* operation arguments */ { char *buf; /* old dir's buffer */ xfs_inode_t *dp; /* incore directory inode */ int i; /* entry index */ xfs_ino_t ino; /* entry inode number */ ******** @OtherOther /home/yyzhou/pad/software-os-src/opensolaris/common/io/ppp/spppcomp/zlib.c:2461:8 */ local void tr_static_init() { static int static_init_done = 0; !! int n; /* iterates over tree elements */ int bits; /* bit counter */ int length; /* length value */ int code; /* code value */ int dist; /* distance index */ ush bl_count[MAX_BITS+1]; ******** @OtherOther /home/yyzhou/pad/software-os-src/opensolaris/common/sys/procset.h:85:0 P_CPUID, /* CPU identifier. */ P_PSETID /* Processor set identifier */ } idtype_t; !!/* * The following defines the operations which can be performed to * combine two simple sets of processes to form another set of * processes. */ #if !defined(_XPG4_2) || defined(__EXTENSIONS__) typedef enum idop { POP_DIFF, /* Set difference. The processes which */ /* are in the left operand set and not */ /* in the right operand set. */ ****** place:variable ******** @OtherOther /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_dir2_block.c:741:30 { xfs_dir2_block_t *block; /* block structure */ xfs_dir2_leaf_entry_t *blp; /* block leaf pointer */ xfs_dabuf_t *bp; /* block buffer */ xfs_dir2_block_tail_t *btp; /* block tail */ !! xfs_dir2_data_entry_t *dep; /* block data entry */ xfs_inode_t *dp; /* incore inode */ int ent; /* block leaf entry index */ int error; /* error return value */ xfs_mount_t *mp; /* filesystem mount point */ int needlog; /* need to log block header */ ** !no objs!@Type *** @Null ****** place:function ******** @Null @Error @Ref @Limitation @LotsOfInfo /home/yyzhou/pad/software-os-src/freebsd/dev/sound/pcm/dsp.c:2861:0 dsp_oss_getsong(struct pcm_channel *wrch, struct pcm_channel *rdch, oss_longname_t *song) { return (EINVAL); } !!/** * @brief Retrieve name of currently played song * * This is a handler for the @c SNDCTL_SETSONG ioctl. Audio players could * tell the system the name of the currently playing song, which would be * visible in @c /dev/sndstat. * * See @c http://manuals.opensound.com/developer/SNDCTL_SETSONG.html * for more details. * * @note As the ioctl definition is still under construction, FreeBSD * does not currently support SNDCTL_SETSONG. * * @param wrch playback channel (optional; may be NULL) * @param rdch recording channel (optional; may be NULL) * @param song song name gets copied from here * * @retval EINVAL Operation not yet supported. */ static int dsp_oss_setsong(struct pcm_channel *wrch, struct pcm_channel *rdch, oss_longname_t *song) { return (EINVAL); } ****** place:function_misc ******** @Null /home/yyzhou/pad/software-os-src/opensolaris/common/os/turnstile.c:679:2 ASSERT(tsfree->ts_waiters == 0); t->t_ts = tsfree; ts->ts_free = tsfree->ts_free; tsfree->ts_free = NULL; } else { !! /* * The active turnstile's freelist is empty, so this * must be the last waiter. Remove the turnstile * from the hash chain and leave the now-inactive * turnstile attached to the thread we're waking. * Note that the ts_inheritor for the turnstile * may be NULL. If one exists, its t_prioinv * chain has to be updated. */ ASSERT(ts->ts_waiters == 1); if (ts->ts_inheritor != NULL) { (void) turnstile_pi_tsdelete(ts, ts->ts_inheritor); /* * If we ever do a "disinherit" or "unboost", we need ****** place:if ******** @Null /home/yyzhou/pad/software-os-src/opensolaris/common/io/usb/hcd/openhci/ohci.c:6599:1 USB_DPRINTF_L4(PRINT_MASK_ALLOC, ohcip->ohci_log_hdl, "ohci_deallocate_td: old_td = 0x%p", (void *)old_td); ASSERT(mutex_owned(&ohcip->ohci_int_mutex)); !! /* * Obtain the transaction wrapper and tw will be * NULL for the dummy and for the reclaim TD's. */ if ((Get_TD(old_td->hctd_state) == HC_TD_DUMMY) || (Get_TD(old_td->hctd_state) == HC_TD_RECLAIM)) { tw = (ohci_trans_wrapper_t *)((uintptr_t) Get_TD(old_td->hctd_trans_wrapper)); ASSERT(tw == NULL); *** @Bound ****** place:if ******** @Bound /home/yyzhou/pad/software-os-src/linux/drivers/net/wireless/airo.c:5326:1 kfree (file->private_data); return -ENOMEM; } data->writelen = 0; data->maxwritelen = 33*3; !! /* allocate maxwritelen + 1; we'll want a sentinel */ if ((data->wbuffer = kzalloc(33*3 + 1, GFP_KERNEL)) == NULL) { kfree (data->rbuffer); kfree (file->private_data); return -ENOMEM; } *** @Range ****** place:break ******** @Range @AbuseInt @EndOfXXX /home/yyzhou/pad/software-os-src/freebsd/dev/cx/csigma.c:1171:2 return; } switch (c->num) { default: !! /* Channels 4..7 and 12..15 in syncronous mode * have no DTR signal. */ break; case 1: case 2: case 3: if (c->type == T_UNIV_RS232) break; ****** place:field ******** @Range @AbuseInt /home/yyzhou/pad/software-os-src/opensolaris/common/sys/ia.h:85:14 int *ia_pstatp; /* pointer to p_stat */ pri_t *ia_pprip; /* pointer to t_pri */ uint_t *ia_pflagp; /* pointer to p_flag */ struct iaproc *ia_next; /* link to next iaproc on list */ struct iaproc *ia_prev; /* link to previous iaproc on list */ !! int ia_mode; /* interactive on/off */ } iaproc_t; /* flags */ #define IAKPRI 0x01 /* thread at kernel mode priority */ ****** place:macro_variable ******** @Range /home/yyzhou/pad/software-os-src/opensolaris/common/inet/nca/nca.h:1821:0 * CTAG hash. */ #define NCA_CTAGHASH_SZ 4096 #define CTAGHASH_IX(t, ix) ((ix) = (t) % NCA_CTAGHASH_SZ) !!/* * VNODE hash. * * Note: NCA_VNODEHASH_SZ must be a P2Ps() value. */ #define NCA_VNODEHASH_SZ 12281 #define VNODEHASH_IX(p, ix) ((ix) = (((uintptr_t)p >> 27) ^ \ ((uintptr_t)p >> 17) ^ ((uintptr_t)p >> 11) ^ (uintptr_t)p) % \ ncavnodehash_sz) ****** place:unknown ******** @Range @CodeCorrelation @See @LotsOfInfo /home/yyzhou/pad/software-os-src/opensolaris/common/inet/sctp/sctp_addr.h:97:0 #define SCTP_DONT_SRC(sctp_saddr) \ ((sctp_saddr)->saddr_ipif_dontsrc || \ (sctp_saddr)->saddr_ipif_unconfirmed) !!/* * SCTP ILL structure - only relevant fields from ill_t retained. * This pretty much reflects the ILL<->IPIF relation that IP maintains. * At present the only state an ILL can be in is CONDEMNED or not. * sctp_ill_ipifcnt gives the number of IPIFs for this ILL, * sctp_ill_index is phyint_ifindex in the actual ILL structure (in IP) * and sctp_ill_flags is ill_flags from the ILL structure. * * The comment below (and for other netstack_t references) refers * to the fact that we only do netstack_hold in particular cases, * such as the references from open streams (ill_t and conn_t's * pointers). Internally within IP we rely on IP's ability to cleanup e.g. * ire_t's when an ill goes away. */ typedef struct sctp_ill_s { list_node_t sctp_ills; int sctp_ill_name_length; char *sctp_ill_name; int sctp_ill_state; **** !no objs!@Min **** !no objs!@Max **** !no objs!@Reserved1 **** !no objs!@Zero **** !no objs!@Reserved0 **** @IntVal ****** place:macro_variable ******** @IntVal /home/yyzhou/pad/software-os-src/linux/arch/ppc/8xx_io/fec.c:89:25 #ifdef CONFIG_ENET_BIG_BUFFERS #define FEC_ENET_RX_PAGES 16 #define FEC_ENET_RX_FRSIZE 2048 #define FEC_ENET_RX_FRPPG (PAGE_SIZE / FEC_ENET_RX_FRSIZE) #define RX_RING_SIZE (FEC_ENET_RX_FRPPG * FEC_ENET_RX_PAGES) !!#define TX_RING_SIZE 16 /* Must be power of two */ #define TX_RING_MOD_MASK 15 /* for this to work */ #else #define FEC_ENET_RX_PAGES 4 #define FEC_ENET_RX_FRSIZE 2048 #define FEC_ENET_RX_FRPPG (PAGE_SIZE / FEC_ENET_RX_FRSIZE) *** @StringVal ****** place:field ******** @StringVal @Example /home/yyzhou/pad/software-os-src/opensolaris/common/rpc/rpcsec_gss.h:113:22 #else char *mechanism; char *qop; #endif rpc_gss_principal_t client_principal; !! char *svc_principal; /* service@server, e.g. nfs@caribe */ rpc_gss_service_t service; } rpc_gss_rawcred_t; /* * unix credentials **** @StringNull ****** place:unknown ******** @StringNull /home/yyzhou/pad/software-os-src/freebsd/boot/arm/at91/bootspi/env_vars.h:33:0 /* <command> <parm1> <parm2> ... */ /* all environment variables (or commands) are stored in a string */ /* format: NULL-terminated. */ /* this implies that commands can never utilize 0-values: actual 0, not */ /* the string '0'. this is not an issue as the string '0' is handled */ !!/* by the command parse routine. */ /* the following defines the maximum size of the environment for */ /* including variables. */ /* this value must match that declared in the low-level file that */ /* actually reserves the space for the non-volatile environment. */ *** @Unit ****** place:field ******** @Unit /home/yyzhou/pad/software-os-src/linux/include/sound/pcm-indirect.h:32:16 struct snd_pcm_indirect { unsigned int hw_buffer_size; /* Byte size of hardware buffer */ unsigned int hw_queue_size; /* Max queue size of hw buffer (0 = buffer size) */ unsigned int hw_data; /* Offset to next dst (or src) in hw ring buffer */ unsigned int hw_io; /* Ring buffer hw pointer */ !! int hw_ready; /* Bytes ready for play (or captured) in hw ring buffer */ unsigned int sw_buffer_size; /* Byte size of software buffer */ unsigned int sw_data; /* Offset to next dst (or src) in sw ring buffer */ unsigned int sw_io; /* Current software pointer in bytes */ int sw_ready; /* Bytes ready to be transferred to/from hw */ snd_pcm_uframes_t appl_ptr; /* Last seen appl_ptr */ ******** @Unit /home/yyzhou/pad/software-os-src/opensolaris/common/pcmcia/sys/cs.h:927:21 /* * get_cardservices_info_t structure used for GetCardServicesInfo */ #define CS_GET_CARDSERVICES_INFO_MAX_VS_LEN 512 typedef struct get_cardservices_info_t { !! char Signature[2]; /* CS signature bytes */ uint32_t NumSockets; /* number of sockets */ uint32_t Revision; /* BCD value of CS revision */ uint32_t CSLevel; /* BCD value of CS release */ uint32_t FuncsPerSocket; /* max number of functions per socket */ char VendorString[CS_GET_CARDSERVICES_INFO_MAX_VS_LEN]; ****** place:funcall ******** @Unit @StupidComment /home/yyzhou/pad/software-os-src/linux/drivers/scsi/sr_ioctl.c:232:5 sshdr.ascq == 0x01) { /* sense: Logical unit is in process of becoming ready */ if (!cgc->quiet) printk(KERN_INFO "%s: CDROM not ready yet.\n", cd->cdi.name); if (retries++ < 10) { !! /* sleep 2 sec and try again */ ssleep(2); goto retry; } else { /* 20 secs are enough? */ err = -ENOMEDIUM; ****** place:function_misc ******** @Unit /home/yyzhou/pad/software-os-src/freebsd/pc98/cbus/fdc.c:2071:25 head << 2 | fdu, /* head & unit */ fd->track, /* track */ head, sec, /* sector + 1 */ fd->ft->secsize, /* sector size */ !! sectrac, /* sectors/track */ fd->ft->gap, /* gap size */ fd->ft->datalen, /* data length */ 0)) { /* the beast is sleeping again */ if (!(fdc->flags & FDC_NODMA)) ****** place:initalizer_misc ******** @Unit /home/yyzhou/pad/software-os-src/linux/drivers/net/wireless/iwlwifi/iwl3945-base.c:4962:44 static const u8 iwl3945_eeprom_band_1[14] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; /* 5.2 GHz bands */ !!static const u8 iwl3945_eeprom_band_2[] = { /* 4915-5080MHz */ 183, 184, 185, 187, 188, 189, 192, 196, 7, 8, 11, 12, 16 }; static const u8 iwl3945_eeprom_band_3[] = { /* 5170-5320MHz */ 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64 ****** place:macro_variable ******** @Unit /home/yyzhou/pad/software-os-src/freebsd/net/if_media.h:197:32 #define IFM_IEEE80211_OFDM9 11 /* OFDM 9Mbps */ #define IFM_IEEE80211_OFDM12 12 /* OFDM 12Mbps */ #define IFM_IEEE80211_OFDM18 13 /* OFDM 18Mbps */ #define IFM_IEEE80211_OFDM24 14 /* OFDM 24Mbps */ #define IFM_IEEE80211_OFDM36 15 /* OFDM 36Mbps */ !!#define IFM_IEEE80211_OFDM48 16 /* OFDM 48Mbps */ #define IFM_IEEE80211_OFDM54 17 /* OFDM 54Mbps */ #define IFM_IEEE80211_OFDM72 18 /* OFDM 72Mbps */ #define IFM_IEEE80211_DS354k 19 /* Direct Sequence 354Kbps */ #define IFM_IEEE80211_DS512k 20 /* Direct Sequence 512Kbps */ #define IFM_IEEE80211_OFDM3 21 /* OFDM 3Mbps */ ******** @Unit /home/yyzhou/pad/software-os-src/linux/include/asm-m68knommu/MC68EZ328.h:176:29 #define PLLFSR_PC_MASK 0x00ff /* P Count */ #define PLLFSR_PC_SHIFT 0 #define PLLFSR_QC_MASK 0x0f00 /* Q Count */ #define PLLFSR_QC_SHIFT 8 #define PLLFSR_PROT 0x4000 /* Protect P & Q */ !!#define PLLFSR_CLK32 0x8000 /* Clock 32 (kHz) */ /* * Power Control Register */ #define PCTRL_ADDR 0xfffff207 ******** @Unit /home/yyzhou/pad/software-os-src/linux/sound/pci/rme9652/rme9652.c:151:38 #define RME9652_start_bit (1<<0) /* start record/play */ /* bits 1-3 encode buffersize/latency */ #define RME9652_Master (1<<4) /* Clock Mode Master=1,Slave/Auto=0 */ #define RME9652_IE (1<<5) /* Interrupt Enable */ !!#define RME9652_freq (1<<6) /* samplerate 0=44.1/88.2, 1=48/96 kHz */ #define RME9652_freq1 (1<<7) /* if 0, 32kHz, else always 1 */ #define RME9652_DS (1<<8) /* Doule Speed 0=44.1/48, 1=88.2/96 Khz */ #define RME9652_PRO (1<<9) /* S/PDIF out: 0=consumer, 1=professional */ #define RME9652_EMP (1<<10) /* Emphasis 0=None, 1=ON */ #define RME9652_Dolby (1<<11) /* Non-audio bit 1=set, 0=unset */ ****** place:return ******** @Unit /home/yyzhou/pad/software-os-src/linux/drivers/isdn/hisax/l3dss1.c:1058:20 case 1: return ai + 24; // 1200/75 bit/s case 2: !! return ai + 23; // 75/1200 bit/s case 3: return ai + 3; // 2400 bit/s case 4: **** @UnitTime ****** place:assignop_plusminus ******** @UnitTime /home/yyzhou/pad/software-os-src/freebsd/boot/ia64/ski/time.c:158:4 /* // Minutes */ UTime += (ETime->Minute * 60); !! /* // Seconds */ UTime += ETime->Second; return UTime; } ******** @UnitTime /home/yyzhou/pad/software-os-src/freebsd/netinet/sctputil.c:2672:3 } else if ((u_long)now.tv_usec < (u_long)old->tv_usec) { /* Borrow 1,000ms from current calculation */ calc_time -= 1000; /* Add in the slop over */ calc_time += ((int)now.tv_usec / 1000); !! /* Add in the pre-second ms's */ calc_time += (((int)1000000 - (int)old->tv_usec) / 1000); } } else if ((u_long)now.tv_sec == (u_long)old->tv_sec) { if ((u_long)now.tv_usec > (u_long)old->tv_usec) { calc_time = ((u_long)now.tv_usec - ****** place:funcall ******** @UnitTime /home/yyzhou/pad/software-os-src/freebsd/dev/nxge/xgehal/xgehal-mgmt.c:1555:26 /* Now wait for the transfer to complete */ do { !! xge_os_mdelay( 50 ); // wait 50 milliseonds val_1 = xge_hal_mdio_read(hldev, XGE_HAL_MDIO_MMD_PMA_DEV_ADDR, 0x8000); if ( i++ > 10 ) { ****** place:function ******** @UnitTime @FlowCallerCallee @LotsOfInfo /home/yyzhou/pad/software-os-src/opensolaris/common/io/1394/adapters/hci1394_async.c:3273:0 TNF_PROBE_0_DEBUG(hci1394_async_pending_timeout_exit, HCI1394_TNF_HAL_STACK, ""); } !!/* * hci1394_async_timeout_calc() * Calculate the timeout for an ATRESP. When an ARREQ is received, this * routine is called with the time the ARREQ was received. It returns the * time when the ATRESP is considered to have timed out. We timeout after * split_timeout has gone by. Split timeout and the returned value are in bus * cycles. */ static uint_t hci1394_async_timeout_calc(hci1394_async_handle_t async_handle, uint_t current_time) { uint_t split_timeout; ****** place:macro_variable ******** @UnitTime /home/yyzhou/pad/software-os-src/opensolaris/sun4v/sys/n2rng.h:255:38 #define RNG_MODE_NORMAL 1 #define RNG_MODE_DIAGNOSTIC 0 #define RNG_DIAG_CHUNK_SIZE (N2RNG_MAX_READ / 8) /* as words */ #define RNG_MAX_DATA_READ_ATTEMPTS 100 !!#define RNG_RETRY_HLCHK_USECS 100000 /* retry every .1 seconds */ #define RNG_MAX_LOGIC_TEST_ATTEMPTS 3 #define RNG_MAX_BUSY_ATTEMPTS 100 #define RNG_MAX_BLOCK_ATTEMPTS 50000 #define RNG_RETRY_BUSY_DELAY 1 ****** place:struct_misc ******** @UnitTime @DefaultValue /home/yyzhou/pad/software-os-src/linux/drivers/scsi/wd7000.c:308:1 unsigned iobase; /* I/O base address */ short bus_on; /* Time that WD7000 spends on the AT-bus when */ /* transferring data. BIOS default is 8000ns. */ short bus_off; /* Time that WD7000 spends OFF THE BUS after */ /* while it is transferring data. */ !! /* BIOS default is 1875ns */ } Config; /* * Add here your configuration... */ ****** place:unknown ******** @UnitTime @Threshold @DataFlow /home/yyzhou/pad/software-os-src/opensolaris/common/sys/fs/ufs_quota.h:59:0 * vfs_dqrwlock > ip.i_contents > dquot.dq_lock > dq_freelock * vfs_dqrwlock > ip.i_contents > dq_freelock * vfs_dqrwlock > ip.i_contents > dq_cachelock > dquot.dq_lock > qip.i_contents */ !!/* * The following constants define the default amount of time given a user * before the soft limits are treated as hard limits (usually resulting * in an allocation failure). These may be modified by the quotactl * system call with the Q_SETQLIM or Q_SETQUOTA commands. */ #define DQ_FTIMELIMIT (7 * 24*60*60) /* 1 week */ #define DQ_BTIMELIMIT (7 * 24*60*60) /* 1 week */ /* ****** place:variable ******** @UnitTime /home/yyzhou/pad/software-os-src/freebsd/netinet/ip_dummynet.c:108:29 static int red_max_pkt_size = 1500; /* RED - default max packet size */ static struct timeval prev_t, t; static long tick_last; /* Last tick duration (usec). */ static long tick_delta; /* Last vs standard tick diff (usec). */ !!static long tick_delta_sum; /* Accumulated tick difference (usec).*/ static long tick_adjustment; /* Tick adjustments done. */ static long tick_lost; /* Lost(coalesced) ticks number. */ /* Adjusted vs non-adjusted curr_time difference (ticks). */ static long tick_diff; **** @UnitSizeBytes ****** place:assignfield ******** @UnitSizeBytes /home/yyzhou/pad/software-os-src/freebsd/dev/fxp/if_fxp.c:1149:1 */ static void fxp_autosize_eeprom(struct fxp_softc *sc) { !! /* guess maximum size of 256 words */ sc->eeprom_size = 8; /* autosize */ (void) fxp_eeprom_getword(sc, 0, 1); } ****** place:function_misc ******** @UnitSizeBytes @RepeatArgumentName /home/yyzhou/pad/software-os-src/freebsd/dev/aic7xxx/aic7xxx_pci.c:2357:51 * we have. Disabling MWI reduces performance, so * turn it on again. */ command = aic_pci_read_config(pci, PCIR_COMMAND, /*bytes*/1); command |= PCIM_CMD_MWRICEN; !! aic_pci_write_config(pci, PCIR_COMMAND, command, /*bytes*/1); ahc->bugs |= AHC_PCI_MWI_BUG; } /* * XXX Does CACHETHEN really not work??? What about PCI retry? * on C level chips. Need to test, but for now, play it safe. ****** place:if ******** @UnitSizeBytes /home/yyzhou/pad/software-os-src/linux/drivers/scsi/3w-xxxx.c:902:1 /* First copy down the buffer length */ if (copy_from_user(&data_buffer_length, argp, sizeof(unsigned int))) goto out; !! /* Check size */ if (data_buffer_length > TW_MAX_IOCTL_SECTORS * 512) { retval = -EINVAL; goto out; } ******** @UnitSizeBytes /home/yyzhou/pad/software-os-src/opensolaris/common/fs/tmpfs/tmp_subr.c:186:31 /* * convert from kilobytes */ case 'k': case 'K': !! if (num > max_bytes / 1024) /* will overflow */ return (EINVAL); num *= 1024; break; /* ****** place:macro_variable ******** @UnitSizeBytes /home/yyzhou/pad/software-os-src/freebsd/vm/vm_reserv.c:78:0 * The number of bits by which a physical address is shifted to obtain the * reservation number */ #define VM_LEVEL_0_SHIFT (VM_LEVEL_0_ORDER + PAGE_SHIFT) !!/* * The size of a level 0 reservation in bytes */ #define VM_LEVEL_0_SIZE (1 << VM_LEVEL_0_SHIFT) /* * Computes the index of the small page underlying the given (object, pindex) * within the reservation's array of small pages. **** !no objs!@UnitOther *** @DependentType ****** place:field ******** @DependentType @CodeCorrelation /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_types.h:160:26 #define MAXNAMELEN 256 typedef struct xfs_dirent { /* data from readdir() */ xfs_ino_t d_ino; /* inode number of entry */ xfs_off_t d_off; /* offset of disk directory entry */ !! unsigned short d_reclen; /* length of this record */ char d_name[1]; /* name of file */ } xfs_dirent_t; #define DIRENTBASESIZE (((xfs_dirent_t *)0)->d_name - (char *)0) #define DIRENTSIZE(namelen) \ **** @DependentTypeArray ****** place:field ******** @DependentTypeArray /home/yyzhou/pad/software-os-src/opensolaris/common/sys/crypto/common.h:64:27 #ifdef _SYSCALL32 typedef struct crypto_mechanism32 { crypto_mech_type_t cm_type; /* mechanism type */ caddr32_t cm_param; /* mech. parameter */ !! size32_t cm_param_len; /* mech. parameter len */ } crypto_mechanism32_t; #endif /* _SYSCALL32 */ #ifdef _KERNEL ****** place:function ******** @DependentTypeArray @InOut @Error @LotsOfInfo /home/yyzhou/pad/software-os-src/freebsd/contrib/ipfilter/netinet/fil.c:3617:0 /* dst(I) - pointer to byte sequence to search */ /* slen(I) - match length */ /* dlen(I) - length available to search in */ /* */ /* Search dst for a sequence of bytes matching those at src and extend for */ !!/* slen bytes. */ /* ------------------------------------------------------------------------ */ char *memstr(src, dst, slen, dlen) const char *src; char *dst; size_t slen, dlen; ******** @DependentTypeArray @Error @Null /home/yyzhou/pad/software-os-src/linux/fs/ext4/xattr.c:413:0 cleanup: brelse(iloc.bh); return error; } !!/* * ext4_xattr_list() * * Copy a list of attribute names into the buffer * provided, or compute the buffer size required. * Buffer is NULL to compute the size of the buffer required. * * Returns a negative error number on failure, or the number of bytes * used / required on success. */ int ext4_xattr_list(struct inode *inode, char *buffer, size_t buffer_size) { int i_error, b_error; ******** @DependentTypeArray @InOut /home/yyzhou/pad/software-os-src/opensolaris/intel/io/acpica/resources/rscalc.c:417:0 return_ACPI_STATUS (AE_AML_NO_RESOURCE_END_TAG); } !!/******************************************************************************* * * FUNCTION: AcpiRsGetListLength * * PARAMETERS: AmlBuffer - Pointer to the resource byte stream * AmlBufferLength - Size of AmlBuffer * SizeNeeded - Where the size needed is returned * * RETURN: Status * * DESCRIPTION: Takes an external resource byte stream and calculates the size * buffer needed to hold the corresponding internal resource * descriptor linked list. * ******************************************************************************/ ACPI_STATUS AcpiRsGetListLength ( UINT8 *AmlBuffer, UINT32 AmlBufferLength, **** @DeputyUnion ****** place:field ******** @DeputyUnion /home/yyzhou/pad/software-os-src/freebsd/sparc64/include/elf.h:60:16 int a_val; /* Integer value. */ } a_un; } Elf32_Auxinfo; typedef struct { /* Auxiliary vector entry on initial stack */ !! long a_type; /* Entry type. */ union { long a_val; /* Integer value. */ void *a_ptr; /* Address. */ void (*a_fcn)(void); /* Function pointer (not used). */ } a_un; ******** @DeputyUnion @LotsOfInfo /home/yyzhou/pad/software-os-src/linux/net/sunrpc/xprtrdma/xprt_rdma.h:154:24 * physical addressing is used, the layout. */ struct rpcrdma_mr_seg { /* chunk descriptors */ union { /* chunk memory handles */ !! struct ib_mr *rl_mr; /* if registered directly */ struct rpcrdma_mw { /* if registered from region */ union { struct ib_mw *mw; struct ib_fmr *fmr; } r; ******** @DeputyUnion @AbuseChar /home/yyzhou/pad/software-os-src/opensolaris/common/c2/audit.h:173:18 /* * Generic network address structure */ struct au_generic_tid { !! uchar_t gt_type; /* AU_IPADR, AU_DEVICE,... */ union { au_ip_t at_ip; au_port_t at_dev; } gt_adr; }; ****** place:struct_misc ******** @DeputyUnion /home/yyzhou/pad/software-os-src/freebsd/netatm/atm.h:192:13 int8_t SVE_tag; /* SVE tag */ u_int8_t ID_type; /* Layer 3 protocol discriminator */ union { /* Layer 3 protocol */ u_int8_t simple_ID; /* ITU */ u_int8_t IPI_ID; /* ISO IPI */ !! struct { /* IEEE 802.1 SNAP ID */ u_int8_t OUI[3]; u_int8_t PID[2]; } SNAP_ID; u_int8_t user_defined_ID;/* User-defined */ } ID; *** !no objs!@RelationType **** @Arity ****** place:unknown ******** @Arity /home/yyzhou/pad/software-os-src/opensolaris/common/inet/arp_impl.h:53:0 uint32_t arp_param_max; uint32_t arp_param_value; char *arp_param_name; } arpparam_t; !!/* ARL Structure, one per link level device */ typedef struct arl_s { struct arl_s *arl_next; /* ARL chain at arl_g_head */ queue_t *arl_rq; /* Read queue pointer */ queue_t *arl_wq; /* Write queue pointer */ t_uscalar_t arl_ppa; /* DL_ATTACH parameter */ **** @TypeAttrUnique ****** place:field ******** @TypeAttrUnique /home/yyzhou/pad/software-os-src/linux/fs/ntfs/layout.h:1170:25 bytes, i.e. sizeof(GUID), if these are not present at all. Note, the entries can be present but one or more (or all) can be zero meaning that that particular value(s) is(are) not defined. */ union { struct { !! GUID birth_volume_id; /* Unique id of volume on which the file was first created.*/ GUID birth_object_id; /* Unique id of file when it was first created. */ GUID domain_id; /* Reserved, zero. */ } __attribute__ ((__packed__)) origin; u8 extended_info[48]; **** @TypeExclusive ****** place:if ******** @TypeExclusive @Time /home/yyzhou/pad/software-os-src/opensolaris/common/io/igb/igb_82575.c:637:2 } else { data &= ~IGP02E1000_PM_D0_LPLU; ret_val = e1000_write_phy_reg(hw, IGP02E1000_PHY_POWER_MGMT, data); !! /* * LPLU and SmartSpeed are mutually exclusive. LPLU is used * during Dx states where the power conservation is most * important. During driver activity we should enable * SmartSpeed, so performance is maintained. */ if (phy->smart_speed == e1000_smart_speed_on) { ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_CONFIG, &data); if (ret_val) *** @TypeBit ****** place:assign ******** @TypeBit /home/yyzhou/pad/software-os-src/freebsd/dev/aic7xxx/aic7xxx.c:3728:4 if (sg != scb->sg_list && sglen < (data_cnt & AHC_SG_LEN_MASK)) { sg--; sglen = aic_le32toh(sg->len); !! /* * Preserve High Address and SG_LIST bits * while setting the count to 1. */ data_cnt = 1 | (sglen & (~AHC_SG_LEN_MASK)); data_addr = aic_le32toh(sg->addr) + (sglen & AHC_SG_LEN_MASK) - 1; /* ******** @TypeBit @Sexy /home/yyzhou/pad/software-os-src/linux/drivers/net/dl2k.c:1429:1 u32 cmd; /* Preamble */ mii_send_bits (dev, 0xffffffff, 32); /* ST(2), OP(2), ADDR(5), REG#(5), TA(2), Data(16) total 32 bits */ !! /* ST,OP,AAAAA,RRRRR,TA = 0101xxxxxxxxxx10'b = 0x5002 for write */ cmd = (0x5002 << 16) | (phy_addr << 23) | (reg_num << 18) | data; mii_send_bits (dev, cmd, 32); /* End cycle */ mii_getbit (dev); return 0; ****** place:assignfield ******** @TypeBit @OsMemory /home/yyzhou/pad/software-os-src/opensolaris/common/io/drm/drm_bufs.c:148:2 if (!map->handle) { DRM_ERROR("drm_addmap: ddi_umem_alloc failed"); drm_free(map, sizeof (*map), DRM_MEM_MAPS); return (ENOMEM); } !! /* * record only low 32-bit of this handle, since 32-bit * user app is incapable of passing in 64bit offset when * doing mmap. */ map->offset = (uintptr_t)map->handle; map->offset &= 0xffffffffUL; if (map->flags & _DRM_CONTAINS_LOCK) { /* Prevent a 2nd X Server from creating a 2nd lock */ if (dev->lock.hw_lock != NULL) { ****** place:enum_value ******** @TypeBit @OsRegister /home/yyzhou/pad/software-os-src/linux/drivers/net/sky2.h:627:27 PREF_UNIT_ADDR_HI = 0x0c, /* 32 bit List start addr, high part*/ PREF_UNIT_GET_IDX = 0x10, /* 16 bit Get Index */ PREF_UNIT_PUT_IDX = 0x14, /* 16 bit Put Index */ PREF_UNIT_FIFO_WP = 0x20, /* 8 bit FIFO write pointer */ PREF_UNIT_FIFO_RP = 0x24, /* 8 bit FIFO read pointer */ !! PREF_UNIT_FIFO_WM = 0x28, /* 8 bit FIFO watermark */ PREF_UNIT_FIFO_LEV = 0x2c, /* 8 bit FIFO level */ PREF_UNIT_MASK_IDX = 0x0fff, }; #define Y2_QADDR(q,reg) (Y2_B8_PREF_REGS + (q) + (reg)) ******** @TypeBit @OsRegister /home/yyzhou/pad/software-os-src/opensolaris/sun4u/io/pmugpio.c:48:15 * Minneapolis/Boston Controller (MBC) FPGA GPIO and Seattle CPLD * GPIO. */ typedef enum { !! PMUGPIO_MBC, /* Boston MBC FPGA GPIO - 8-bit */ PMUGPIO_CPLD, /* Seattle CPLD GPIO - 8-bit */ PMUGPIO_OTHER /* Chalupa - 8-bit */ } pmugpio_access_type_t; /* ****** place:funcall ******** @TypeBit @OsInterrupt @Devil /home/yyzhou/pad/software-os-src/linux/drivers/scsi/sym53c8xx_2/sym_glue.c:1624:2 if ((tmp & 0x2) == 0) { tmp |= 0x2; pci_write_config_byte(memc, 0x44, tmp); } !! /* bit 2: drive individual 875 interrupts to the bus */ pci_read_config_byte(memc, 0x45, &tmp); if ((tmp & 0x4) == 0) { tmp |= 0x4; pci_write_config_byte(memc, 0x45, tmp); } ****** place:function_misc ******** @TypeBit @Devil /home/yyzhou/pad/software-os-src/linux/drivers/infiniband/hw/cxgb3/cxio_hal.c:659:2 wr_len = ((sizeof(struct t3_bypass_wr)) >> 3) + 1 + (utx_len << 2); wqe = (__be64 *)(rdev_p->ctrl_qp.workq + (rdev_p->ctrl_qp.wptr % (1 << T3_CTRL_QP_SIZE_LOG2))); !! /* wptr in the WRID[31:0] */ ((union t3_wrid *)(wqe+1))->id0.low = rdev_p->ctrl_qp.wptr; /* * This must be the last write with a memory barrier * for the genbit ******** @TypeBit @Devil /home/yyzhou/pad/software-os-src/linux/drivers/media/video/saa7114.c:622:44 decoder->reg[REG_ADDR(0xc9)] = HIBYTE(voff) & 0x0f; // voffset high decoder->reg[REG_ADDR(0xca)] = LOBYTE(h + 2); // height low decoder->reg[REG_ADDR(0xcb)] = HIBYTE(h + 2) & 0x0f; // height high decoder->reg[REG_ADDR(0xcc)] = LOBYTE(w); // out width low decoder->reg[REG_ADDR(0xcd)] = HIBYTE(w) & 0x0f; // out width high !! decoder->reg[REG_ADDR(0xce)] = LOBYTE(h); // out height low decoder->reg[REG_ADDR(0xcf)] = HIBYTE(h) & 0x0f; // out height high saa7114_write(client, 0x80, 0x06); // i-port and scaler back end clock selection, task A&B off saa7114_write(client, 0x88, 0xd8); // sw reset scaler ****** place:macro_variable ******** @TypeBit @Devil @StupidComment /home/yyzhou/pad/software-os-src/freebsd/dev/msk/if_mskreg.h:320:38 #define PCI_ASPM_GPHY_LINK_DOWN BIT_14 /* GPHY Link Down (A1 only) */ #define PCI_ASPM_INT_FIFO_EMPTY BIT_13 /* Internal FIFO Empty (A1 only) */ #define PCI_ASPM_CLKRUN_REQUEST BIT_12 /* CLKRUN Request (A1 only) */ #define PCI_ASPM_FORCE_CLKREQ_ENA BIT_4 /* Force CLKREQ Enable (A1b only) */ #define PCI_ASPM_CLKREQ_PAD_CTL BIT_3 /* CLKREQ PAD Control (A1 only) */ !!#define PCI_ASPM_A1_MODE_SELECT BIT_2 /* A1 Mode Select (A1 only) */ #define PCI_CLK_GATE_PEX_UNIT_ENA BIT_1 /* Enable Gate PEX Unit Clock */ #define PCI_CLK_GATE_ROOT_COR_ENA BIT_0 /* Enable Gate Root Core Clock */ /* PEX_DEV_CTRL 16 bit PEX Device Control (Yukon-2) */ #define PEX_DC_MAX_RRS_MSK (7<<12) /* Bit 14..12: Max. Read Request Size */ ******** @TypeBit /home/yyzhou/pad/software-os-src/freebsd/dev/sound/pci/envy24ht.h:131:34 #define ENVY24HT_MT_PCTL 0x18 /* Global Playback and Record DMA Start/Stop Register */ #define ENVY24HT_MT_PCTL_RSTART 0x02 /* 1: Record start; 0: Record stop */ #define ENVY24HT_MT_PCTL_PSTART 0x01 /* 1: Playback start; 0: Playback stop */ !!#define ENVY24HT_MT_RADDR 0x20 /* Record DMA Current/Base Address Register */ #define ENVY24HT_MT_RCNT 0x24 /* Record DMA Current/Base Count Register */ #define ENVY24HT_MT_RTERM 0x26 /* Record Current/Base Terminal Count Register */ /* These map values are refferd from ALSA sound driver. ******** @TypeBit @CodeCorrelation /home/yyzhou/pad/software-os-src/linux/drivers/infiniband/hw/ipath/ipath_iba6110.c:352:0 #define INFINIPATH_RT_BUFSIZE_SHIFT 48 #define INFINIPATH_R_INTRAVAIL_SHIFT 16 #define INFINIPATH_R_TAILUPD_SHIFT 31 !!/* kr_xgxsconfig bits */ #define INFINIPATH_XGXS_RESET 0x7ULL /* * masks and bits that are different in different chips, or present only * in one ******** @TypeBit /home/yyzhou/pad/software-os-src/linux/drivers/media/video/saa7191.h:27:30 #define SAA7191_REG_HCLB 0x03 #define SAA7191_REG_HCLS 0x04 #define SAA7191_REG_HPHI 0x05 #define SAA7191_REG_LUMA 0x06 #define SAA7191_REG_HUEC 0x07 !!#define SAA7191_REG_CKTQ 0x08 /* bits 3-7 */ #define SAA7191_REG_CKTS 0x09 /* bits 3-7 */ #define SAA7191_REG_PLSE 0x0a #define SAA7191_REG_SESE 0x0b #define SAA7191_REG_GAIN 0x0c #define SAA7191_REG_STDC 0x0d ******** @TypeBit /home/yyzhou/pad/software-os-src/linux/drivers/net/ixgb/ixgb_hw.h:215:29 #define IXGB_MPC 0x02080 /* Missed Packets Count */ #define IXGB_TPTL 0x02100 /* Total Packets Transmitted (Low) */ #define IXGB_TPTH 0x02104 /* Total Packets Transmitted (High) */ #define IXGB_GPTCL 0x02108 /* Good Packets Transmitted Count (Low) */ #define IXGB_GPTCH 0x0210C /* Good Packets Transmitted Count (High) */ !!#define IXGB_BPTCL 0x02110 /* Broadcast Packets Transmitted Count (Low) */ #define IXGB_BPTCH 0x02114 /* Broadcast Packets Transmitted Count (High) */ #define IXGB_MPTCL 0x02118 /* Multicast Packets Transmitted Count (Low) */ #define IXGB_MPTCH 0x0211C /* Multicast Packets Transmitted Count (High) */ #define IXGB_UPTCL 0x02120 /* Unicast Packets Transmitted Count (Low) */ #define IXGB_UPTCH 0x02124 /* Unicast Packets Transmitted Count (High) */ ******** @TypeBit /home/yyzhou/pad/software-os-src/linux/drivers/usb/gadget/m66592-udc.h:185:29 #define M66592_NRDYENB 0x38 #define M66592_NRDYSTS 0x48 #define M66592_NRDY7 0x0080 /* b7: PIPE7 */ #define M66592_NRDY6 0x0040 /* b6: PIPE6 */ #define M66592_NRDY5 0x0020 /* b5: PIPE5 */ !!#define M66592_NRDY4 0x0010 /* b4: PIPE4 */ #define M66592_NRDY3 0x0008 /* b3: PIPE3 */ #define M66592_NRDY2 0x0004 /* b2: PIPE2 */ #define M66592_NRDY1 0x0002 /* b1: PIPE1 */ #define M66592_NRDY0 0x0001 /* b1: PIPE0 */ ******** @TypeBit /home/yyzhou/pad/software-os-src/linux/fs/jfs/jfs_dinode.h:150:21 #define IDIRECTORY 0x20000000 /* directory (shadow of real bit) */ #define IARCHIVE 0x40000000 /* file archive bit */ #define INEWNAME 0x80000000 /* non-8.3 filename format */ #define IRASH 0x4E000000 /* mask for changeable attributes */ !!#define ATTRSHIFT 25 /* bits to shift to move attribute specification to mode position */ /* extended attributes for Linux */ #define JFS_NOATIME_FL 0x00080000 /* do not update atime */ ******** @TypeBit @Devil /home/yyzhou/pad/software-os-src/linux/include/asm-arm/arch-sa1100/SA-1100.h:1199:38 #define GPIO_SSP_SCLK GPIO_GPIO (12) /* SSP Sample CLocK (O) */ #define GPIO_SSP_SFRM GPIO_GPIO (13) /* SSP Sample FRaMe (O) */ /* ser. port 1: */ #define GPIO_UART_TXD GPIO_GPIO (14) /* UART Transmit Data (O) */ #define GPIO_UART_RXD GPIO_GPIO (15) /* UART Receive Data (I) */ !!#define GPIO_SDLC_SCLK GPIO_GPIO (16) /* SDLC Sample CLocK (I/O) */ #define GPIO_SDLC_AAF GPIO_GPIO (17) /* SDLC Abort After Frame (O) */ #define GPIO_UART_SCLK1 GPIO_GPIO (18) /* UART Sample CLocK 1 (I) */ /* ser. port 4: */ #define GPIO_SSP_CLK GPIO_GPIO (19) /* SSP external CLocK (I) */ /* ser. port 3: */ ******** @TypeBit @BadComment /home/yyzhou/pad/software-os-src/linux/include/asm-blackfin/mach-bf561/defBF561.h:1702:33 #define EB2__SZ_32 0x00020000 /* SDRAM external bank size = 32MB */ #define EB2__SZ_64 0x00040000 /* SDRAM external bank size = 64MB */ #define EB2__SZ_128 0x00060000 /* SDRAM external bank size = 128MB */ #define EB2__CAW_8 0x00000000 /* SDRAM external bank column address width = 8 bits */ #define EB2__CAW_9 0x00100000 /* SDRAM external bank column address width = 9 bits */ !!#define EB2__CAW_10 0x00200000 /* SDRAM external bank column address width = 9 bits */ #define EB2__CAW_11 0x00300000 /* SDRAM external bank column address width = 9 bits */ #define EB3__E 0x01000000 /* Enable SDRAM external bank 3 */ #define EB3__SZ_16 0x00000000 /* SDRAM external bank size = 16MB */ #define EB3__SZ_32 0x02000000 /* SDRAM external bank size = 32MB */ ******** @TypeBit /home/yyzhou/pad/software-os-src/linux/include/asm-m68knommu/commproc.h:452:0 #define PA_ENET_RCLK PA_CLK2 #define PC_ENET_TENA PC_RTS1 #define PC_ENET_CLSN PC_CTS1 #define PC_ENET_RENA PC_CD1 !!/* Control bits in the SICR to route TCLK (CLK1) and RCLK (CLK2) to * SCC1. */ #define SICR_ENET_MASK ((uint)0x000000ff) #define SICR_ENET_CLKRT ((uint)0x0000002c) #endif /* config_ucquicc */ ******** @TypeBit @OsInterrupt /home/yyzhou/pad/software-os-src/linux/include/linux/ibmtr.h:66:0 #define ERR_INT 0x08 /* Bit 3 - Error interrupt. The adapter has had an internal error. */ #define ACCESS_INT 0x04 /* Bit 2 - Access interrupt. You have attempted to write to an invalid area of shared RAM or an invalid register within the MMIO. */ !!/* In addition, the following bits within ISRP_EVEN can be turned on or off */ /* by you to control the interrupt processing: */ #define INT_ENABLE 0x40 /* Bit 6 - Interrupt enable. If 0, no interrupts will occur. If 1, interrupts will occur normally. Normally set to 1. */ /* Bit 0 - Primary or alternate adapter. Set to zero if this adapter is the ******** @TypeBit @Devil @Sexy /home/yyzhou/pad/software-os-src/linux/include/sound/emu10k1.h:1101:32 #define EMU_HANA_MAJOR_REV 0x23 /* 0000xxx 3 bit Hana FPGA Major rev */ #define EMU_HANA_MINOR_REV 0x24 /* 0000xxx 3 bit Hana FPGA Minor rev */ #define EMU_DOCK_MAJOR_REV 0x25 /* 0000xxx 3 bit Audio Dock FPGA Major rev */ !!#define EMU_DOCK_MINOR_REV 0x26 /* 0000xxx 3 bit Audio Dock FPGA Minor rev */ #define EMU_DOCK_BOARD_ID 0x27 /* 00000xx 2 bits Audio Dock ID pins */ #define EMU_DOCK_BOARD_ID0 0x00 /* ID bit 0 */ #define EMU_DOCK_BOARD_ID1 0x03 /* ID bit 1 */ ******** @TypeBit @OsMemoryPhysical /home/yyzhou/pad/software-os-src/opensolaris/sun4u/starcat/os/starcat.c:988:0 ddi_prop_free((void *)dimm_labels); return (DDI_WALK_TERMINATE); } !!/* * Bit 4 of physical address indicates ecache 0 or 1 */ #define ECACHE_DIMM_MASK 0x10 /* * plat_get_ecacheunum is called to generate the unum for an ecache error. ****** place:unknown ******** @TypeBit /home/yyzhou/pad/software-os-src/linux/drivers/net/ni5010.h:78:5 #define XM_RCVD 0x20 /* =1 to enable Xmt Pkt Rcvd ints */ #define XM_UFLW 0x08 /* =1 to enable Xmt Underflow ints */ #define XM_COLL 0x04 /* =1 to enable Xmt Collision ints */ #define XM_COLL16 0x02 /* =1 to enable Xmt 16th Coll ints */ #define XM_PERR 0x01 /* =1 to enable Xmt Parity Error ints */ !! /* note: always clear this bit */ #define XM_ALL (XM_TPOK | XM_RCVD | XM_UFLW | XM_COLL | XM_COLL16) /* bits in EDLC_RSTAT, interrupt clear on write, status when read */ #define RS_PKT_OK 0x80 /* received good packet */ #define RS_RST_PKT 0x10 /* RESET packet received */ ******** @TypeBit /home/yyzhou/pad/software-os-src/linux/drivers/net/sk98lin/h/skgehw.h:249:9 /* PCI_BASE_ROM 32 bit Expansion ROM Base Address */ #define PCI_ROMBASE_MSK 0xfffe0000L /* Bit 31..17: ROM Base address */ #define PCI_ROMBASE_SIZ (0x1cL<<14) /* Bit 16..14: Treat as Base or Size */ #define PCI_ROMSIZE (0x38L<<11) /* Bit 13..11: ROM Size Requirements */ !! /* Bit 10.. 1: reserved */ #define PCI_ROMEN BIT_0 /* Address Decode enable */ /* Device Dependent Region */ /* PCI_OUR_REG_1 32 bit Our Register 1 */ /* Bit 31..29: reserved */ ******** @TypeBit @Sexy /home/yyzhou/pad/software-os-src/linux/drivers/net/sungem.h:239:0 #define RXDMA_CFG_FTHRESH_256 0x02000000 /* - 256 bytes */ #define RXDMA_CFG_FTHRESH_512 0x03000000 /* - 512 bytes */ #define RXDMA_CFG_FTHRESH_1K 0x04000000 /* - 1024 bytes */ #define RXDMA_CFG_FTHRESH_2K 0x05000000 /* - 2048 bytes */ !!/* RX Descriptor Base Low/High. * * These two registers store the 53 most significant bits of the base address * of the RX descriptor table. The 11 least significant bits are always * zero. As a result, the RX descriptor table must be 2K aligned. */ /* RX PAUSE Thresholds. * * These values determine when XOFF and XON PAUSE frames are emitted by * GEM. The thresholds measure RX FIFO occupancy in units of 64 bytes. ******** @TypeBit @Devil @OsRegister /home/yyzhou/pad/software-os-src/opensolaris/common/io/rtw/rtwreg.h:753:25 #define RTW_BCNITV 0x70 /* Beacon Interval Register, 16b */ /* * TU between TBTT, written by host. */ #define RTW_BCNITV_BCNITV_MASK BITS(9, 0) !!#define RTW_ATIMWND 0x72 /* ATIM Window Register, 16b */ /* * ATIM Window length in TU, written by host. */ #define RTW_ATIMWND_ATIMWND BITS(9, 0) ******** @TypeBit @ByteAddress /home/yyzhou/pad/software-os-src/opensolaris/common/sys/pci.h:39:28 /* * PCI Configuration Header offsets */ #define PCI_CONF_VENID 0x0 /* vendor id, 2 bytes */ !!#define PCI_CONF_DEVID 0x2 /* device id, 2 bytes */ #define PCI_CONF_COMM 0x4 /* command register, 2 bytes */ #define PCI_CONF_STAT 0x6 /* status register, 2 bytes */ #define PCI_CONF_REVID 0x8 /* revision id, 1 byte */ #define PCI_CONF_PROGCLASS 0x9 /* programming class code, 1 byte */ #define PCI_CONF_SUBCLASS 0xA /* sub-class code, 1 byte */ ******** @TypeBit @Diagram @OsRegister /home/yyzhou/pad/software-os-src/opensolaris/sun4u/sys/opl_olympus_regs.h:229:0 #define OPL_SCRATCHPAD_UTSBREG4 0x20 #define OPL_SCRATCHPAD_UNUSED5 0x28 #define OPL_SCRATCHPAD_UNUSED6 0x30 #define OPL_SCRATCHPAD_UNUSED7 0x38 !!/* * Error log scratchpad register format. * * +--------+-------------------+----------+ * |ASI_EIDR| PA to logging buf | # of err | * +--------+-------------------+----------+ * 63 50 49 6 5 0 * */ #define ERRLOG_REG_LOGPA_MASK INT64_C(0x0003ffffffffffc0) /* PA to log */ #define ERRLOG_REG_NUMERR_MASK INT64_C(0x000000000000003f) /* Counter */ #define ERRLOG_REG_EIDR_MASK INT64_C(0x0000000000003fff) /* EIDR */ **** @BitLowHigh ****** place:macro_variable ******** @BitLowHigh @Devil /home/yyzhou/pad/software-os-src/freebsd/dev/ixgb/ixgb_hw.h:218:29 #define IXGB_ICBC 0x02070 /* Illegal control byte in mid-packet Count */ #define IXGB_ECBC 0x02078 /* Error Control byte in mid-packet Count */ #define IXGB_MPC 0x02080 /* Missed Packets Count */ #define IXGB_TPTL 0x02100 /* Total Packets Transmitted (Low) */ #define IXGB_TPTH 0x02104 /* Total Packets Transmitted (High) */ !!#define IXGB_GPTCL 0x02108 /* Good Packets Transmitted Count (Low) */ #define IXGB_GPTCH 0x0210C /* Good Packets Transmitted Count (High) */ #define IXGB_BPTCL 0x02110 /* Broadcast Packets Transmitted Count (Low) */ #define IXGB_BPTCH 0x02114 /* Broadcast Packets Transmitted Count (High) */ #define IXGB_MPTCL 0x02118 /* Multicast Packets Transmitted Count (Low) */ #define IXGB_MPTCH 0x0211C /* Multicast Packets Transmitted Count (High) */ ****** place:unknown ******** @BitLowHigh /home/yyzhou/pad/software-os-src/linux/include/asm-mips/pmc-sierra/msp71xx/msp_regs.h:298:5 #define PERF_MON_CTRL_REG regptr(MSP_SLP_BASE + 0x140) /* Performance monitor control */ #define PERF_MON_CLR_REG regptr(MSP_SLP_BASE + 0x144) /* Performance monitor clear */ #define PERF_MON_CNTH_REG regptr(MSP_SLP_BASE + 0x148) !! /* Perf monitor counter high */ #define PERF_MON_CNTL_REG regptr(MSP_SLP_BASE + 0x14C) /* Perf monitor counter low */ /* System control registers */ #define SYS_CTRL_REG regptr(MSP_SLP_BASE + 0x150) **** @BitRW ****** place:macro_variable ******** @BitRW /home/yyzhou/pad/software-os-src/freebsd/dev/ncv/ncr53c500reg.h:74:22 #define cr1_fdata 0x04 /* RW - PIO FIFO */ #define cr1_fstat 0x08 /* RW - PIO Status */ #define cr1_atacmd 0x09 /* RW - ATA Command/Status */ #define cr1_ataerr 0x0a /* RW - ATA Features/Error */ #define cr1_pflag 0x0b /* RW - PIO Flag Interrupt Enable */ !!#define cr1_cfg5 0x0d /* RW - Configuration #5 */ #define cr1_sig 0x0e /* RO - Signature */ #define cr1_cfg6 0x0f /* RW - Configuration #6 */ /* atacmd (MPS110 ONLY) */ #define ATACMD_POWDOWN 0x2d ******** @BitRW @Devil /home/yyzhou/pad/software-os-src/freebsd/dev/trm/trm.h:859:37 */ #define TRMREG_DMA_XCNT 0xA8 /* DMA Transfer Counter (R/W)*/ /* *************************************** */ !!#define TRMREG_DMA_CXCNT 0xAC /* DMA Current Transfer Counter (R) */ /* *************************************** */ #define TRMREG_DMA_XLOWADDR 0xB0 /* DMA Transfer Physical Low Address */ /* ******** @BitRW /home/yyzhou/pad/software-os-src/freebsd/dev/usb/ehcireg.h:154:34 #define EHCI_PERIODICLISTBASE 0x14 /* RW Periodic List Base */ #define EHCI_ASYNCLISTADDR 0x18 /* RW Async List Base */ #define EHCI_CONFIGFLAG 0x40 /* RW Configure Flag register */ !!#define EHCI_CONF_CF 0x00000001 /* RW configure flag */ #define EHCI_PORTSC(n) (0x40+4*(n)) /* RO, RW, RWC Port Status reg */ #define EHCI_PS_WKOC_E 0x00400000 /* RW wake on over current ena */ #define EHCI_PS_WKDSCNNT_E 0x00200000 /* RW wake on disconnect ena */ #define EHCI_PS_WKCNNT_E 0x00100000 /* RW wake on connect ena */ ******** @BitRW /home/yyzhou/pad/software-os-src/linux/drivers/net/bnx2x_reg.h:73:0 #define CCM_REG_CCM_CQM_USE_Q 0xd00c0 /* [RW 11] Interrupt mask register #0 read/write */ #define CCM_REG_CCM_INT_MASK 0xd01e4 /* [R 11] Interrupt register #0 read */ #define CCM_REG_CCM_INT_STS 0xd01d8 !!/* [RW 3] The size of AG context region 0 in REG-pairs. Designates the MS REG-pair number (e.g. if region 0 is 6 REG-pairs; the value should be 5). Is used to determine the number of the AG context REG-pairs written back; when the input message Reg1WbFlg isn't set. */ #define CCM_REG_CCM_REG0_SZ 0xd00c4 /* [RW 1] CM - STORM 0 Interface enable. If 0 - the acknowledge input is disregarded; valid is deasserted; all other signals are treated as usual; if 1 - normal activity. */ #define CCM_REG_CCM_STORM0_IFEN 0xd0004 ******** @BitRW /home/yyzhou/pad/software-os-src/linux/drivers/net/bnx2x_reg.h:704:0 /* [RW 16] port 0 attn bit condition monitoring; each bit that is set will lock a change fron 0 to 1 in the corresponding attention signals that comes from the AEU */ #define HC_REG_LEADING_EDGE_0 0x108040 #define HC_REG_LEADING_EDGE_1 0x108048 !!/* [RW 16] all producer and consumer of port 0 according to the following addresses; U_prod: 0-15; C_prod: 16-31; U_cons: 32-47; C_cons:48-63; Defoult_prod: U/C/X/T/Attn-64/65/66/67/68; Defoult_cons: U/C/X/T/Attn-69/70/71/72/73 */ #define HC_REG_P0_PROD_CONS 0x108200 /* [RW 16] all producer and consumer of port 1according to the following addresses; U_prod: 0-15; C_prod: 16-31; U_cons: 32-47; C_cons:48-63; Defoult_prod: U/C/X/T/Attn-64/65/66/67/68; Defoult_cons: U/C/X/T/Attn-69/70/71/72/73 */ ******** @BitRW /home/yyzhou/pad/software-os-src/linux/drivers/net/sk98lin/h/skgehw.h:372:31 /* 0x0042 - 0x0047: reserved */ #define B0_XM2_ISRC 0x0048 /* 16 bit ro XMAC 2 Interrupt Status Reg */ /* 0x004a - 0x004f: reserved */ #define B0_XM2_PHY_ADDR 0x0050 /* 16 bit r/w XMAC 2 PHY Address Register */ /* 0x0052 - 0x0053: reserved */ !!#define B0_XM2_PHY_DATA 0x0054 /* 16 bit r/w XMAC 2 PHY Data Register */ /* 0x0056 - 0x005f: reserved */ /* BMU Control Status Registers */ #define B0_R1_CSR 0x0060 /* 32 bit BMU Ctrl/Stat Rx Queue 1 */ #define B0_R2_CSR 0x0064 /* 32 bit BMU Ctrl/Stat Rx Queue 2 */ ******** @BitRW /home/yyzhou/pad/software-os-src/linux/drivers/usb/gadget/lh7a40x_udc.h:180:30 #define EP0_CLR_SETUP_END (1<<7) /* Clear "Setup Ends" Bit (w) */ #define EP0_CLR_OUT (1<<6) /* Clear "Out packet ready" Bit (w) */ #define EP0_SEND_STALL (1<<5) /* Send STALL Handshake (rw) */ #define EP0_SETUP_END (1<<4) /* Setup Ends (r) */ !!#define EP0_DATA_END (1<<3) /* Data end (rw) */ #define EP0_SENT_STALL (1<<2) /* Sent Stall Handshake (r) */ #define EP0_IN_PKT_RDY (1<<1) /* In packet ready (rw) */ #define EP0_OUT_PKT_RDY (1<<0) /* Out packet ready (r) */ /* general CSR */ ****** place:unknown ******** @BitRW /home/yyzhou/pad/software-os-src/opensolaris/common/io/igb/igb_regs.h:203:27 #define E1000_SYMERRS 0x04008 /* Symbol Error Count - R/clr */ #define E1000_RXERRC 0x0400C /* Receive Error Count - R/clr */ #define E1000_MPC 0x04010 /* Missed Packet Count - R/clr */ #define E1000_SCC 0x04014 /* Single Collision Count - R/clr */ #define E1000_ECOL 0x04018 /* Excessive Collision Count - R/clr */ !!#define E1000_MCC 0x0401C /* Multiple Collision Count - R/clr */ #define E1000_LATECOL 0x04020 /* Late Collision Count - R/clr */ #define E1000_COLC 0x04028 /* Collision Count - R/clr */ #define E1000_DC 0x04030 /* Defer Count - R/clr */ #define E1000_TNCRS 0x04034 /* Tx-No CRS - R/clr */ #define E1000_SEC 0x04038 /* Sequence Error Count - R/clr */ **** @Bitmask ****** place:unknown ******** @Bitmask @AbuseInt /home/yyzhou/pad/software-os-src/linux/drivers/isdn/hisax/ipacx.c:883:0 if (ista &0x10) cs->readisac(cs, IPACX_CIR0); if (ista &0x01) cs->readisac(cs, IPACX_ISTAD); } //---------------------------------------------------------- !!// Does chip configuration work // Work to do depends on bit mask in part //---------------------------------------------------------- void init_ipacx(struct IsdnCardState *cs, int part) { **** @BitCond ****** place:unknown ******** @BitCond @CondRelated /home/yyzhou/pad/software-os-src/opensolaris/sun/sys/ser_zscc.h:60:25 /* bits in RR0 */ #define ZSRR0_RX_READY 0x01 /* received character available */ #define ZSRR0_TIMER 0x02 /* if R15_TIMER, timer reached 0 */ #define ZSRR0_TX_READY 0x04 /* transmit buffer empty */ #define ZSRR0_CD 0x08 /* CD input (latched if R15_CD) */ !!#define ZSRR0_SYNC 0x10 /* SYNC input (latched if R15_SYNC) */ #define ZSRR0_CTS 0x20 /* CTS input (latched if R15_CTS) */ #define ZSRR0_TXUNDER 0x40 /* (SYNC) Xmitter underran */ #define ZSRR0_BREAK 0x80 /* received break detected */ /* bits in RR1 */ *** !no objs!@MacroGrouping **** @BitsetGrouping ****** place:macro_variable ******** @BitsetGrouping @OsRegister /home/yyzhou/pad/software-os-src/linux/drivers/media/video/zr36060.h:179:0 #define ZR060_MER_Com (1 << 6) #define ZR060_MER_DRI (1 << 5) #define ZR060_MER_DQT (1 << 4) #define ZR060_MER_DHT (1 << 3) !!/* ZR36060 Interrupt Mask register */ #define ZR060_IMR_EOAV (1 << 3) #define ZR060_IMR_EOI (1 << 2) #define ZR060_IMR_End (1 << 1) #define ZR060_IMR_DataErr (1 << 0) ******** @BitsetGrouping /home/yyzhou/pad/software-os-src/linux/include/asm-arm/arch-omap/clock.h:62:0 extern void followparent_recalc(struct clk * clk); extern void clk_allow_idle(struct clk *clk); extern void clk_deny_idle(struct clk *clk); extern int clk_get_usecount(struct clk *clk); !!/* Clock flags */ #define RATE_CKCTL (1 << 0) /* Main fixed ratio clocks */ #define RATE_FIXED (1 << 1) /* Fixed clock rate */ #define RATE_PROPAGATES (1 << 2) /* Program children too */ #define VIRTUAL_CLOCK (1 << 3) /* Composite clock from table */ #define ALWAYS_ENABLED (1 << 4) /* Clock cannot be disabled */ ******** @BitsetGrouping /home/yyzhou/pad/software-os-src/linux/include/asm-arm/arch-s3c2410/osiris-cpld.h:17:0 */ #ifndef __ASM_ARCH_OSIRISCPLD_H #define __ASM_ARCH_OSIRISCPLD_H !!/* CTRL0 - NAND WP control */ #define OSIRIS_CTRL0_NANDSEL (0x3) #define OSIRIS_CTRL0_BOOT_INT (1<<3) #define OSIRIS_CTRL0_PCMCIA (1<<4) #define OSIRIS_CTRL0_FIX8 (1<<5) ******** @BitsetGrouping /home/yyzhou/pad/software-os-src/linux/include/asm-blackfin/mach-bf548/defBF54x_base.h:3406:0 #define SCTS 0x1 /* Sticky CTS */ #define CTS 0x10 /* Clear To Send */ #define RFCS 0x20 /* Receive FIFO Count Status */ !!/* Bit masks for UARTx_IER_SET & UARTx_IER_CLEAR */ #define ERBFI 0x1 /* Enable Receive Buffer Full Interrupt */ #define ETBEI 0x2 /* Enable Transmit Buffer Empty Interrupt */ #define ELSI 0x4 /* Enable Receive Status Interrupt */ #define EDSSI 0x8 /* Enable Modem Status Interrupt */ ******** @BitsetGrouping /home/yyzhou/pad/software-os-src/linux/include/linux/sched.h:1439:0 { if (atomic_dec_and_test(&t->usage)) __put_task_struct(t); } !!/* * Per process flags */ #define PF_ALIGNWARN 0x00000001 /* Print alignment warning msgs */ /* Not implemented yet, only for 486*/ #define PF_STARTING 0x00000002 /* being created */ #define PF_EXITING 0x00000004 /* getting shut down */ #define PF_EXITPIDONE 0x00000008 /* pi exit done on shut down */ ****** place:unknown ******** @BitsetGrouping @SectionVisual /home/yyzhou/pad/software-os-src/linux/drivers/scsi/initio.h:329:0 #define EXTAD 0x60 #define SEG4K 0x08 #define EEPRG 0x04 #define MRMUL 0x02 !!/*----------------------------------------------------------------------*/ /* bit definition for TUL_NVRAM */ /*----------------------------------------------------------------------*/ #define SE2CS 0x08 #define SE2CLK 0x04 #define SE2DO 0x02 **** @DefineTypeGrouping ****** place:macro_function ******** @DefineTypeGrouping /home/yyzhou/pad/software-os-src/freebsd/dev/acpica/acpi_hpet.h:48:0 #define HPET_CNF_LEG_RT 0x00000002 #define HPET_CNF_ENABLE 0x00000001 #define HPET_ISR 0x20 /* General interrupt status register */ #define HPET_MAIN_COUNTER 0xf0 /* Main counter register */ !!/* Timer registers */ #define HPET_TIMER_CAP_CNF(x) ((x) * 0x20 + 0x100) #define HPET_TCAP_INT_ROUTE 0xffffffff00000000 #define HPET_TCAP_FSB_INT_DEL 0x00008000 #define HPET_TCNF_FSB_EN 0x00004000 #define HPET_TCNF_INT_ROUTE 0x00003e00 ****** place:macro_variable ******** @DefineTypeGrouping @Devil @OsRegister /home/yyzhou/pad/software-os-src/freebsd/dev/dpt/dpt.h:193:0 #define HD(cmd) ((hostdata *)&(cmd->host->hostdata)) #define CD(cmd) ((struct eata_ccb *)(cmd->host_scribble)) #define SD(host) ((hostdata *)&(host->hostdata)) !!/* * EATA Command & Register definitions */ #define PCI_REG_DPTconfig 0x40 #define PCI_REG_PumpModeAddress 0x44 #define PCI_REG_PumpModeData 0x48 #define PCI_REG_ConfigParam1 0x50 ******** @DefineTypeGrouping @ExplanationOther @OsRegister /home/yyzhou/pad/software-os-src/freebsd/dev/fatm/if_fatmreg.h:34:0 * $FreeBSD: src/sys/dev/fatm/if_fatmreg.h,v 1.2 2005/01/06 01:42:40 imp Exp $ * * Fore PCA200E hardware definitions. */ !!/* * Fore implements some additional PCI registers. One of them is the * master control register. One of the bits allow to automatically byte * swap accesses to the on-board RAM. */ #define FATM_PCIR_MCTL 0x41 #define FATM_PCIM_SWAB 0x100 /* * Operations codes for commands. ******** @DefineTypeGrouping /home/yyzhou/pad/software-os-src/freebsd/dev/hatm/if_hatmreg.h:314:0 #define HE_REGO_SUNI 0x80800 #define HE_REGO_SUNI_END 0x80C00 #define HE_REGO_END 0x100000 !!/* * MBOX registers */ #define HE_REGO_CS_STPER0 0x000 #define HE_REGO_CS_STPER(G) (HE_REGO_CS_STPER0 + (G)) #define HE_REGN_CS_STPER 32 #define HE_REGO_CS_STTIM0 0x020 #define HE_REGO_CS_STTIM(G) (HE_REGO_CS_STTIM0 + (G)) ******** @DefineTypeGrouping /home/yyzhou/pad/software-os-src/freebsd/dev/my/if_myreg.h:244:0 #define MY_CRC 0x00000008 /* crc error */ #define MY_RXER 0x00000004 /* receive error */ #define MY_RDES0CHECK 0x000078fc /* only check MAR, BAR, PHY, ES, RUNT, LONG, FAE, CRC and RXER bits */ !!/* * receive descriptor 1 */ #define MY_RXIC 0x00800000 /* interrupt control */ #define MY_RBSMASK 0x000007ff /* receive buffer size */ #define MY_RBSShift 0 /* ******** @DefineTypeGrouping /home/yyzhou/pad/software-os-src/freebsd/net/if_llc.h:141:0 #define LLC_XID 0xaf #define LLC_XID_P 0xbf #define LLC_SABME 0x6f #define LLC_SABME_P 0x7f !!/* * Supervisory LLC commands */ #define LLC_RR 0x01 #define LLC_RNR 0x05 #define LLC_REJ 0x09 /* ******** @DefineTypeGrouping @OsRegister /home/yyzhou/pad/software-os-src/freebsd/pci/if_vrreg.h:482:0 #define REV_ID_VT6102_APOLLO 0x74 #define REV_ID_VT3106 0x80 #define REV_ID_VT3106_J 0x80 /* 0x80-0x8F */ #define REV_ID_VT3106_S 0x90 /* 0x90-0xA0 */ !!/* * PCI low memory base and low I/O base register, and * other PCI registers. */ #define VR_PCI_VENDOR_ID 0x00 #define VR_PCI_DEVICE_ID 0x02 #define VR_PCI_COMMAND 0x04 #define VR_PCI_STATUS 0x06 ******** @DefineTypeGrouping /home/yyzhou/pad/software-os-src/linux/arch/parisc/math-emu/float.h:440:0 #define Inexactflag(object) Bitfield_extract( 4, 1,object) #define Allflags(object) Bitfield_extract( 0, 5,object) /* Definitions relevant to the status register */ !!/* Rounding Modes */ #define ROUNDNEAREST 0 #define ROUNDZERO 1 #define ROUNDPLUS 2 #define ROUNDMINUS 3 ******** @DefineTypeGrouping @OsRegister /home/yyzhou/pad/software-os-src/linux/drivers/ide/ppc/pmac.c:216:0 #define TR_33_PIO_RECOVERY_MASK 0x000003e0 #define TR_33_PIO_RECOVERY_SHIFT 5 #define TR_33_PIO_ACCESS_MASK 0x0000001f #define TR_33_PIO_ACCESS_SHIFT 0 !!/* * Interrupt register definitions */ #define IDE_INTR_DMA 0x80000000 #define IDE_INTR_DEVICE 0x40000000 /* * FCR Register on Kauai. Not sure what bit 0x4 is ... ******** @DefineTypeGrouping /home/yyzhou/pad/software-os-src/linux/include/asm-mips/sibyte/sb1250_mc.h:265:0 #define M_MC_CS0 _SB_MAKEMASK1(4) #define M_MC_CS1 _SB_MAKEMASK1(5) #define M_MC_CS2 _SB_MAKEMASK1(6) #define M_MC_CS3 _SB_MAKEMASK1(7) !!/* * DRAM Mode Register (Table 6-14) */ #define S_MC_EMODE 0 #define M_MC_EMODE _SB_MAKEMASK(15, S_MC_EMODE) #define V_MC_EMODE(x) _SB_MAKEVALUE(x, S_MC_EMODE) #define G_MC_EMODE(x) _SB_GETVALUE(x, S_MC_EMODE, M_MC_EMODE) ******** @DefineTypeGrouping @Error /home/yyzhou/pad/software-os-src/linux/include/scsi/iscsi_proto.h:510:0 }; /* Logout PDU flags */ #define ISCSI_FLAG_LOGOUT_REASON_MASK 0x7F !!/* logout reason_code values */ #define ISCSI_LOGOUT_REASON_CLOSE_SESSION 0 #define ISCSI_LOGOUT_REASON_CLOSE_CONNECTION 1 #define ISCSI_LOGOUT_REASON_RECOVERY 2 #define ISCSI_LOGOUT_REASON_AEN_REQUEST 3 ******** @DefineTypeGrouping /home/yyzhou/pad/software-os-src/linux/include/video/radeon.h:1632:0 #define MC_CHP_IO_CNTL_B1__MEM_CLK_SELB__SHIFT 0x0000001a #define MC_CHP_IO_CNTL_B1__MEM_CLK_INVB__SHIFT 0x0000001c #define MC_CHP_IO_CNTL_B1__MEM_DATA_ENIMP_B__SHIFT 0x0000001e #define MC_CHP_IO_CNTL_B1__MEM_CNTL_ENIMP_B__SHIFT 0x0000001f !!// MC_CHP_IO_CNTL_A1 #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_CKA_MASK 0x00000001L #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_CKA 0x00000001L #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_AA_MASK 0x00000002L #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_AA 0x00000002L #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQMA_MASK 0x00000004L ****** place:unknown ******** @DefineTypeGrouping /home/yyzhou/pad/software-os-src/opensolaris/common/sys/1394/adapters/hci1394_rio_regs.h:44:0 #ifdef __cplusplus extern "C" { #endif !!/* * RIO's vendor specific register mapping information. What register set it * uses and the offset/size of the register set. */ #define RIOREG_REG_BASE 0x2 #define RIOREG_OFFSET 0x0 #define RIOREG_LENGTH 0x800 /* ******** @DefineTypeGrouping /home/yyzhou/pad/software-os-src/opensolaris/intel/sys/controlregs.h:89:0 * - clear monitor coprocessor (so fwait/wait doesn't #nm) */ #define CR0_DISABLE_FPU_FLAGS(cr) \ (((cr) | CR0_EM) & (uint32_t)~CR0_MP) !!/* CR3 Register */ #define CR3_PCD 0x00000010 /* cache disable */ #define CR3_PWT 0x00000008 /* write through */ #define FMT_CR3 "\20\5pcd\4pwt" ******** @DefineTypeGrouping /home/yyzhou/pad/software-os-src/opensolaris/sparc/sys/fm/cpu/UltraSPARC-III.h:342:0 /* * FM_EREPORT_PAYLOAD_L2_TAG_PE */ #define FM_EREPORT_CPU_USIII_ETP "etp" !!/* * FM_EREPORT_PAYLOAD_L2_TAG_ECC */ #define FM_EREPORT_CPU_USIII_THCE "thce" #define FM_EREPORT_CPU_USIII_TSCE "tsce" #define FM_EREPORT_CPU_USIII_TUE "tue" #define FM_EREPORT_CPU_USIII_TUE_SH "tue-sh" #define FM_EREPORT_CPU_USIII_ETU "etu" *** @TypeTemplate ****** place:field ******** @TypeTemplate /home/yyzhou/pad/software-os-src/linux/drivers/s390/scsi/zfcp_def.h:974:37 * pointer to struct device is used to free unit structure in release function * of the device. don't change! */ struct zfcp_unit { struct device sysfs_device; /* sysfs device */ !! struct list_head list; /* list of logical units */ atomic_t refcount; /* reference count */ wait_queue_head_t remove_wq; /* can be used to wait for refcount drop to zero */ struct zfcp_port *port; /* remote port of unit */ atomic_t status; /* status of this logical unit */ ** !no objs!@Interface *** @PreCondition ****** place:assign ******** @PreCondition /home/yyzhou/pad/software-os-src/freebsd/dev/sr/if_sr.c:2206:11 #if BUGGY > 0 printf("sr_dmac_intr(hc=%08x,isr1=%04x)\n", hc, isr1); #endif !! mch = 0; /* assume chan0 on card */ dotxstart = isr1; /* copy for xmitter starts */ /* * Shortcut if there is no interrupts for dma channel 0 or 1. * Skip processing for channel 0 if no incoming hit ******** @PreCondition @DefaultValue @OsDisk /home/yyzhou/pad/software-os-src/linux/arch/ia64/dig/setup.c:32:1 void __init dig_setup (char **cmdline_p) { unsigned int orig_x, orig_y, num_cols, num_rows, font_height; !! /* * Default to /dev/sda2. This assumes that the EFI partition * is physical disk 1 partition 1 and the Linux root disk is * physical disk 1 partition 2. */ ROOT_DEV = Root_SDA2; /* default to second partition on first drive */ #ifdef CONFIG_SMP init_smp_config(); #endif ******** @PreCondition /home/yyzhou/pad/software-os-src/linux/drivers/scsi/wd33c93.c:818:49 #ifdef PROC_STATISTICS hostdata->int_cnt++; #endif !! cmd = (struct scsi_cmnd *) hostdata->connected; /* assume we're connected */ sr = read_wd33c93(regs, WD_SCSI_STATUS); /* clear the interrupt */ phs = read_wd33c93(regs, WD_COMMAND_PHASE); DB(DB_INTR, printk("{%02x:%02x-", asr, sr)) ******** @PreCondition /home/yyzhou/pad/software-os-src/opensolaris/common/io/net80211/net80211_crypto_tkip.c:743:1 struct ieee80211_frame *wh; uint32_t iv32; uint16_t iv16; wh = (struct ieee80211_frame *)mp->b_rptr; !! /* tkip_decap already verified header and left seq in rx_rsc */ iv16 = (uint16_t)ctx->rx_rsc; iv32 = (uint32_t)(ctx->rx_rsc >> 16); if (iv32 != (uint32_t)(key->wk_keyrsc >> 16) || !ctx->rx_phase1_done) { tkip_mixing_phase1(ctx->rx_ttak, key->wk_key, ****** place:assignfield ******** @PreCondition /home/yyzhou/pad/software-os-src/opensolaris/common/io/sata/impl/sata.c:5657:3 } switch (sata_pkt->satapkt_reason) { case SATA_PKT_PORT_ERROR: /* We may want to handle DEV GONE state as well */ !! /* * We have no device data. Assume no data transfered. */ sense->es_key = KEY_HARDWARE_ERROR; break; case SATA_PKT_DEV_ERROR: if (sata_pkt->satapkt_cmd.satacmd_status_reg & ****** place:funcall ******** @PreCondition /home/yyzhou/pad/software-os-src/freebsd/sparc64/sparc64/machdep.c:332:1 * DELAY(). */ OF_getprop(child, "clock-frequency", &clock, sizeof(clock)); tick_init(clock); !! /* * Initialize the console before printing anything. */ cninit(); /* * Panic if there is no metadata. Most likely the kernel was booted * directly, instead of through loader(8). ****** place:function_misc ******** @PreCondition /home/yyzhou/pad/software-os-src/linux/drivers/char/epca.c:1091:1 num_cards = NUMCARDS; memcpy(&boards, &static_boards, sizeof(struct board_info) * NUMCARDS); } !! /* * Note : If lilo was used to configure the driver and the ignore * epcaconfig option was choosen (digiepca=2) then nbdevs and num_cards * will equal 0 at this point. This is okay; PCI cards will still be * picked up if detected. */ /* * Set up interrupt, we will worry about memory allocation in * post_fep_init. */ ****** place:if ******** @PreCondition /home/yyzhou/pad/software-os-src/linux/arch/x86/kernel/io_apic_64.c:2227:1 apic_printk(APIC_QUIET,KERN_ERR "IOAPIC[%d]: Invalid reference to IRQ 0\n", ioapic); return -EINVAL; } !! /* * IRQs < 16 are already in the irq_2_pin[] map */ if (irq >= 16) add_pin_to_irq(irq, ioapic, pin); setup_IO_APIC_irq(ioapic, pin, irq, triggering, polarity); ******** @PreCondition @LotsOfInfo @CondRelated /home/yyzhou/pad/software-os-src/opensolaris/sun4v/pcbe/niagara2_pcbe.c:412:1 */ if (((other_config = kcpc_next_config(token, NULL, NULL)) != NULL) && (other_config->pcbe_flags != flags)) return (CPC_CONFLICTING_REQS); !! /* * If the hpriv attribute is present, make sure we have * access to hyperprivileged events before continuing with * this configuration. If we can set the ht bit in the PCR * successfully, we must have access to hyperprivileged * events. * * If this is a static per-CPU configuration, the CPC * driver ensures there can not be more than one for this * CPU. If this is a per-LWP configuration, the driver * ensures no static per-CPU counting is ongoing and that * the target LWP is not already being monitored. */ if (flags & CPC_COUNT_HV) { kpreempt_disable(); DTRACE_PROBE1(niagara2__setpcr, uint64_t, allstopped | CPC_NIAGARA2_PCR_HT); ****** place:unknown ******** @PreCondition /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ipf/netinet/ip_rpcb_pxy.c:877:0 /* Take a presumed RPCB reply, extract the XID, search for the original */ /* request information, and determine whether the request was accepted */ /* or rejected. With a valid accepted reply, go ahead and create NAT */ /* and state entries, and finish up by rewriting the packet as */ /* required. */ !!/* */ /* WARNING: It's the responsibility of the caller to make sure there */ /* is enough room in rs_buf for the basic RPC message "preamble". */ /* -------------------------------------------------------------------- */ static int ippr_rpcb_decoderep(fin, nat, rs, rm, rxp, ifsrpcb) ****** place:variable ******** @PreCondition /home/yyzhou/pad/software-os-src/opensolaris/sun/io/zs_common.c:590:3 * because we'll create them below, in this case. */ if (ddi_get_instance(dev) != 0) { !! /* * Select a node type unused by ddi/devfs */ static char *obp_type = "obp-console-name"; (void) strcpy(name, "a"); if (ddi_create_minor_node(dev, name, S_IFCHR, ddi_get_instance(dev) * 2, **** @PreParam ****** place:function ******** @PreParam /home/yyzhou/pad/software-os-src/freebsd/netatm/spans/spans_cls.c:775:0 clp->cls_state = CLS_CLOSED; } !!/* * Process CLS VCC Connected Notification * * Arguments: * toku user's connection token (spanscls protocol block) * * Returns: * none * */ static void spanscls_connected(toku) void *toku; { /* ******** @PreParam @DataFlow @Author /home/yyzhou/pad/software-os-src/linux/drivers/net/hp100.c:277:0 static void hp100_clean_txring(struct net_device *dev); #ifdef HP100_DEBUG static void hp100_RegisterDump(struct net_device *dev); #endif !!/* Conversion to new PCI API : * Convert an address in a kernel buffer to a bus/phys/dma address. * This work *only* for memory fragments part of lp->page_vaddr, * because it was properly DMA allocated via pci_alloc_consistent(), * so we just need to "retrieve" the original mapping to bus/phys/dma * address - Jean II */ static inline dma_addr_t virt_to_whatever(struct net_device *dev, u32 * ptr) { struct hp100_private *lp = netdev_priv(dev); return ((u_long) ptr) + lp->whatever_offset; } ******** @PreParam @Null @Error @CondRelated @LotsOfInfo /home/yyzhou/pad/software-os-src/opensolaris/common/io/1394/adapters/hci1394_ixl_misc.c:53:0 static void hci1394_delete_dma_desc_mem(hci1394_state_t *soft_statep, hci1394_idma_desc_mem_t *); static void hci1394_delete_xfer_ctl(hci1394_xfer_ctl_t *); !!/* * hci1394_ixl_set_start() * Set up the context structure with the first ixl command to process * and the first hci descriptor to execute. * * This function assumes the current context is stopped! * * If ixlstp IS NOT null AND is not the first compiled ixl command and * is not an ixl label command, returns an error. * If ixlstp IS null, uses the first compiled ixl command (ixl_firstp) * in place of ixlstp. * * If no executeable xfer found along exec path from ixlstp, returns error. */ int hci1394_ixl_set_start(hci1394_iso_ctxt_t *ctxtp, ixl1394_command_t *ixlstp) { ixl1394_command_t *ixl_exec_startp; *** !no objs!@PostReturn *** @PreContext ****** place:assign ******** @PreContext @MaybeComment /home/yyzhou/pad/software-os-src/freebsd/sun4v/sun4v/tte_hash.c:561:1 uint64_t tte_hash_set_scratchpad_kernel(tte_hash_t th) { uint64_t hash_scratch; !! /* This breaks if a hash table grows above 32MB */ hash_scratch = ((vm_offset_t)th->th_hashtable) | ((vm_offset_t)(1<<th->th_shift)); set_hash_kernel_scratchpad(hash_scratch); return (hash_scratch); } ****** place:function ******** @PreContext /home/yyzhou/pad/software-os-src/freebsd/vm/vm_object.c:1618:0 } return (r); } !!/* * this version of collapse allows the operation to occur earlier and * when paging_in_progress is true for an object... This is not a complete * operation, but should plug 99.9% of the rest of the leaks. */ static void vm_object_qcollapse(vm_object_t object) { vm_object_t backing_object = object->backing_object; ******** @PreContext @EffectOther @Checker /home/yyzhou/pad/software-os-src/opensolaris/sfmmu/vm/hat_sfmmu.c:8353:0 sfmmu_page_exit(pmtx); } sfmmu_mlist_exit(pml); } !!/* * Refresh the HAT ismttecnt[] element for size szc. * Caller must have set ISM busy flag to prevent mapping * lists from changing while we're traversing them. */ pgcnt_t ism_tsb_entries(sfmmu_t *sfmmup, int szc) { ism_blk_t *ism_blkp = sfmmup->sfmmu_iblk; ism_map_t *ism_map; ****** place:macro_variable ******** @PreContext @DataFlow /home/yyzhou/pad/software-os-src/freebsd/dev/cxgb/common/cxgb_firmware_exports.h:84:0 * * Note: WR coming from ULP or TP are only limited by CIM. */ #define FW_WR_SIZE 128 !!/* Maximum number of outstanding WRs sent from the host. Value must be * programmed in the CTRL/TUNNEL/QP SGE Egress Context and used by * offload modules to limit the number of WRs per connection. */ #define FW_T3_WR_NUM 16 #define FW_N3_WR_NUM 7 #ifndef N3 # define FW_WR_NUM FW_T3_WR_NUM ****** place:unknown ******** @PreContext /home/yyzhou/pad/software-os-src/freebsd/contrib/opensolaris/uts/common/sys/bitmap.h:46:0 #if defined(__GNUC__) && defined(_ASM_INLINES) && \ (defined(__i386) || defined(__amd64)) #include <asm/bitmap.h> #endif !!/* * Operations on bitmaps of arbitrary size * A bitmap is a vector of 1 or more ulong_t's. * The user of the package is responsible for range checks and keeping * track of sizes. */ #ifdef _LP64 #define BT_ULSHIFT 6 /* log base 2 of BT_NBIPUL, to extract word index */ #define BT_ULSHIFT32 5 /* log base 2 of BT_NBIPUL, to extract word index */ #else **** @LockFunctionRequirement ****** place:field ******** @LockFunctionRequirement @LotsOfInfo @BeforeAfter /home/yyzhou/pad/software-os-src/linux/sound/aoa/soundbus/soundbus.h:129:1 /* start() is called before data is pushed to the codec. * Note that start() must be atomic! */ int (*start)(struct codec_info_item *cii, struct snd_pcm_substream *substream); !! /* stop() is called after data is no longer pushed to the codec. * Note that stop() must be atomic! */ int (*stop)(struct codec_info_item *cii, struct snd_pcm_substream *substream); int (*suspend)(struct codec_info_item *cii, pm_message_t state); int (*resume)(struct codec_info_item *cii); ****** place:funcall ******** @LockFunctionRequirement @ControlFlow /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_vnodeops.c:2662:1 ips[1] = sip; } xfs_lock_inodes(ips, 2, 0, XFS_ILOCK_EXCL); !! /* * Increment vnode ref counts since xfs_trans_commit & * xfs_trans_cancel will both unlock the inodes and * decrement the associated ref counts. */ VN_HOLD(src_vp); VN_HOLD(target_dir_vp); xfs_trans_ijoin(tp, sip, XFS_ILOCK_EXCL); xfs_trans_ijoin(tp, tdp, XFS_ILOCK_EXCL); ******** @LockFunctionRequirement /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip/ip6_ire.c:835:1 * happens *after* all of the above stores. */ membar_producer(); *irep = ire; ire->ire_bucket = irb_ptr; !! /* * We return a bumped up IRE above. Keep it symmetrical * so that the callers will always have to release. This * helps the callers of this function because they continue * to use the IRE after adding and hence they don't have to * lookup again after we return the IRE. * * NOTE : We don't have to use atomics as this is appearing * in the list for the first time and no one else can bump * up the reference count on this yet. */ IRE_REFHOLD_LOCKED(ire); BUMP_IRE_STATS(ipst->ips_ire_stats_v6, ire_stats_inserted); irb_ptr->irb_ire_cnt++; if (ire->ire_marks & IRE_MARK_TEMPORARY) irb_ptr->irb_tmp_ire_cnt++; ****** place:function ******** @LockFunctionRequirement @InOut @Error @SectionVisual @CondRelated @LotsOfInfo @Sexy /home/yyzhou/pad/software-os-src/freebsd/contrib/ipfilter/netinet/fil.c:6644:0 /* allocated. If one is found then it is moved to the top of the list of */ /* currently active tokens. */ /* */ /* NOTE: It is by design that this function returns holding a read lock on */ /* ipf_tokens. Callers must make sure they release it! */ !!/* ------------------------------------------------------------------------ */ ipftoken_t *ipf_findtoken(type, uid, ptr) int type, uid; void *ptr; { ipftoken_t *it, *new; ******** @LockFunctionRequirement /home/yyzhou/pad/software-os-src/freebsd/contrib/opensolaris/uts/common/os/taskq.c:672:0 tq->tq_nalloc++; } return (tqe); } !!/* * taskq_ent_free() * * Free taskq_ent_t structure by either putting it on the free list or freeing * it to the cache. * * Assumes: tq->tq_lock is held. */ static void taskq_ent_free(taskq_t *tq, taskq_ent_t *tqe) { ASSERT(MUTEX_HELD(&tq->tq_lock)); ******** @LockFunctionRequirement /home/yyzhou/pad/software-os-src/freebsd/dev/fatm/if_fatm.c:358:0 cv_signal(&sc->cv_regs); return (0); } !!/* * Check whether the hard is beating. We remember the last heart beat and * compare it to the current one. If it appears stuck for 10 times, we have * a problem. * * Assume we hold the lock. */ static void fatm_check_heartbeat(struct fatm_softc *sc) { uint32_t h; ******** @LockFunctionRequirement /home/yyzhou/pad/software-os-src/freebsd/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c:3456:0 ng_btsocket_rfcomm_timo * hz); } else panic("%s: Duplicated socket timeout?!\n", __func__); } /* ng_btsocket_rfcomm_timeout */ !!/* * Unset pcb timeout. Caller MUST hold pcb_mtx */ static void ng_btsocket_rfcomm_untimeout(ng_btsocket_rfcomm_pcb_p pcb) { mtx_assert(&pcb->pcb_mtx, MA_OWNED); ******** @LockFunctionRequirement /home/yyzhou/pad/software-os-src/linux/drivers/isdn/gigaset/gigaset.h:815:0 tasklet_schedule(&cs->event_tasklet); spin_unlock_irqrestore(&cs->lock, flags); } /* Tell common.c that B channel has been closed. */ !!/* cs->lock must not be locked */ static inline void gigaset_bchannel_down(struct bc_state *bcs) { gigaset_add_event(bcs->cs, &bcs->at_state, EV_BC_CLOSED, NULL, 0, NULL); gig_dbg(DEBUG_CMD, "scheduling BC_CLOSED"); ******** @LockFunctionRequirement /home/yyzhou/pad/software-os-src/linux/net/netlink/af_netlink.c:1089:0 do_one_set_err(sk, &info); read_unlock(&nl_table_lock); } !!/* must be called with netlink table grabbed */ static void netlink_update_socket_mc(struct netlink_sock *nlk, unsigned int group, int is_new) { int old, new = !!is_new, subscriptions; ******** @LockFunctionRequirement @LotsOfInfo /home/yyzhou/pad/software-os-src/opensolaris/common/fs/sockfs/socksubr.c:119:0 struct k_sockinfo { struct sockinfo ks_si; char ks_straddr[3][ADRSTRLEN]; }; !!/* * Translate from a device pathname (e.g. "/dev/tcp") to a vnode. * Returns with the vnode held. */ static int sogetvp(char *devpath, vnode_t **vpp, int uioflag) { struct snode *csp; vnode_t *vp, *dvp; ****** place:unknown ******** @LockFunctionRequirement @LotsOfInfo /home/yyzhou/pad/software-os-src/freebsd/contrib/ipfilter/netinet/ip_auth.c:674:0 /* ------------------------------------------------------------------------ */ /* Function: fr_authflush */ /* Returns: int - number of auth entries flushed */ /* Parameters: None */ !!/* Locks: WRITE(ipf_auth) */ /* */ /* This function flushs the fr_authpkts array of any packet data with */ /* references still there. */ /* It is expected that the caller has already acquired the correct locks or */ /* set the priority level correctly for this to block out other code paths */ ***** @LockEffect ****** place:funcall ******** @LockEffect /home/yyzhou/pad/software-os-src/opensolaris/common/io/usb/usba/hubdi.c:3818:4 (void) pm_busy_component(dip, 0); (void) pm_raise_power(dip, 0, USB_DEV_OS_FULL_PWR); (void) pm_idle_component(dip, 0); !! /* release the hold on the child */ ndi_rele_devi(dip); mutex_enter(HUBD_MUTEX(hubd)); hubd->h_port_state[port] &= ~HUBD_CHILD_RAISE_POWER; } ****** place:function ******** @LockEffect /home/yyzhou/pad/software-os-src/freebsd/dev/em/e1000_mac.c:1489:0 *duplex = FULL_DUPLEX; return E1000_SUCCESS; } !!/** * e1000_get_hw_semaphore_generic - Acquire hardware semaphore * @hw: pointer to the HW structure * * Acquire the HW semaphore to access the PHY or NVM **/ s32 e1000_get_hw_semaphore_generic(struct e1000_hw *hw) { u32 swsm; s32 ret_val = E1000_SUCCESS; s32 timeout = hw->nvm.word_size + 1; ******** @LockEffect @CondRelated /home/yyzhou/pad/software-os-src/freebsd/security/audit/audit_worker.c:422:0 bsm->len); kau_free(bsm); } !!/* * The audit_worker thread is responsible for watching the event queue, * dequeueing records, converting them to BSM format, and committing them to * disk. In order to minimize lock thrashing, records are dequeued in sets * to a thread-local work queue. In addition, the audit_work performs the * actual exchange of audit log vnode pointer, as audit_vp is a thread-local * variable. */ static void audit_worker(void *arg) { struct kaudit_queue ar_worklist; struct kaudit_record *ar; ******** @LockEffect /home/yyzhou/pad/software-os-src/linux/include/net/sock.h:1203:0 if (!sock_flag(sk, SOCK_DEAD)) sk->sk_data_ready(sk, skb->len); return 0; } !!/* * Recover an error report and clear atomically */ static inline int sock_error(struct sock *sk) { int err; if (likely(!sk->sk_err)) ****** place:function_misc ******** @LockEffect /home/yyzhou/pad/software-os-src/opensolaris/sparc/os/bootdev.c:446:1 pdip = ddi_get_parent(dip); pip = NULL; goto finish; } !! /* find and hold the pathinfo */ ndi_devi_enter(dip, &circ); pip = mdi_get_next_phci_path(dip, NULL); if (pip == NULL) { ****** place:if ******** @LockEffect /home/yyzhou/pad/software-os-src/opensolaris/sun4u/sunfire/io/sysctrl.c:1253:2 /* * First switch is to do correct locking and do ddi_copyin() */ switch (cmd) { case SYSC_CFGA_CMD_GETSTATUS: !! /* mutex lock the whole list */ if (sysc_enter_transition(-1) != TRUE) { retval = EBUSY; goto cleanup_exit; } **** @ContextAdvice ****** place:unknown ******** @ContextAdvice /home/yyzhou/pad/software-os-src/linux/drivers/net/irda/donauboe.c:85:0 /* we need an interrupt for every frame, unset if oboe works for a bit and */ /* then hangs */ #define OPTIMIZE_TX /* Set the number of slots in the rings */ !!/* If you get rx/tx fifo overflows at high bitrates, you can try increasing */ /* these */ #define RING_SIZE (OBOE_RING_SIZE_RX8 | OBOE_RING_SIZE_TX8) #define TX_SLOTS 8 #define RX_SLOTS 8 ******** @ContextAdvice @PostEffect @LotsOfInfo @OsMemory /home/yyzhou/pad/software-os-src/linux/include/asm-mips/fixmap.h:22:0 #ifdef CONFIG_HIGHMEM #include <linux/threads.h> #include <asm/kmap_types.h> #endif !!/* * Here we define all the compile-time 'special' virtual * addresses. The point is to have a constant address at * compile time, but to set the physical address only * in the boot process. We allocate these special addresses * from the end of virtual memory (0xfffff000) backwards. * Also this lets us do fail-safe vmalloc(), we * can guarantee that these special addresses and * vmalloc()-ed addresses never overlap. * * these 'compile-time allocated' memory buffers are * fixed-size 4k pages. (or larger if used with an increment * highger than 1) use fixmap_set(idx,phys) to associate * physical memory with fixmap indices. * * TLB entries of such buffers will not be flushed across * task switches. */ /* * on UP currently we will have no trace of the fixmap mechanizm, * no page table allocations, etc. This might change in the * future, say framebuffers for the console driver(s) could be ******** @ContextAdvice /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip.h:1097:0 #define IPSEC_POLICY_AUTH_NOT_NEEDED 2 #define IPSEC_POLICY_ENCR_NOT_NEEDED 3 #define IPSEC_POLICY_SE_NOT_NEEDED 4 #define IPSEC_POLICY_MAX 5 /* Always max + 1. */ !!/* * Folowing macro is used whenever the code does not know whether there * is a M_CTL present in the front and it needs to examine the actual mp * i.e the IP header. As a M_CTL message could be in the front, this * extracts the packet into mp and the M_CTL mp into first_mp. If M_CTL * mp is not present, both first_mp and mp point to the same message. */ #define EXTRACT_PKT_MP(mp, first_mp, mctl_present) \ (first_mp) = (mp); \ if ((mp)->b_datap->db_type == M_CTL) { \ (mp) = (mp)->b_cont; \ (mctl_present) = B_TRUE; \ **** @CallerCallee ****** place:assignop_plusminus ******** @CallerCallee /home/yyzhou/pad/software-os-src/linux/net/sunrpc/svc.c:699:2 struct task_struct *victim; int error = 0; unsigned int state = serv->sv_nrthreads-1; if (pool == NULL) { !! /* The -1 assumes caller has done a svc_get() */ nrservs -= (serv->sv_nrthreads-1); } else { spin_lock_bh(&pool->sp_lock); nrservs -= pool->sp_nrthreads; spin_unlock_bh(&pool->sp_lock); **** @BeforeAfter ****** place:function_misc ******** @BeforeAfter @OsRegister /home/yyzhou/pad/software-os-src/linux/arch/mips/jazz/jazzdma.c:421:1 r4030_write_reg32(JAZZ_R4030_CHNL_ENABLE + (channel << 5), r4030_read_reg32(JAZZ_R4030_CHNL_ENABLE + (channel << 5)) & ~R4030_CHNL_ENABLE); !! /* * After disabling a DMA channel a remote bus register should be * read to ensure that the current DMA acknowledge cycle is completed. */ *((volatile unsigned int *) JAZZ_DUMMY_DEVICE); } EXPORT_SYMBOL(vdma_disable); ****** place:unknown ******** @BeforeAfter @DataFlow @Magic @Example @LotsOfInfo /home/yyzhou/pad/software-os-src/linux/drivers/net/wireless/iwlwifi/iwl3945-base.c:4925:0 iwl3945_enable_interrupts(priv); spin_unlock(&priv->lock); return IRQ_NONE; } !!/************************** EEPROM BANDS **************************** * * The iwl3945_eeprom_band definitions below provide the mapping from the * EEPROM contents to the specific channel number supported for each * band. * * For example, iwl3945_priv->eeprom.band_3_channels[4] from the band_3 * definition below maps to physical channel 42 in the 5.2GHz spectrum. * The specific geography and calibration information for that channel * is contained in the eeprom map itself. * * During init, we copy the eeprom information and channel map * information into priv->channel_info_24/52 and priv->channel_map_24/52 * * channel_map_24/52 provides the index in the channel_info array for a * given channel. We have to have two separate maps as there is channel * overlap with the 2.4GHz and 5.2GHz spectrum as seen in band_1 and * band_2 * * A value of 0xff stored in the channel_map indicates that the channel * is not supported by the hardware at all. * * A value of 0xfe in the channel_map indicates that the channel is not * valid for Tx with the current hardware. This means that * while the system can tune and receive on a given channel, it may not * be able to associate or transmit any frames on that * channel. There is no corresponding channel information for that * entry. * *********************************************************************/ /* 2.4 GHz */ static const u8 iwl3945_eeprom_band_1[14] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; ******** @BeforeAfter @OsMemory /home/yyzhou/pad/software-os-src/opensolaris/sun4u/sys/machparam.h:203:0 #define SYSBASE ADDRESS_C(0x30000000000) #define SYSLIMIT ADDRESS_C(0x70000000000) #define SYSBASE32 ADDRESS_C(0x70000000) #define SYSLIMIT32 ADDRESS_C(0x80000000) !!/* * BOOTTMPBASE is the base of a space that can be reclaimed * after the kernel takes over the machine. It contains the * boot archive and memory allocated by krtld before kmem_alloc * is brought online. */ #define BOOTTMPBASE ADDRESS_C(0x4C000000) /* * MEMSCRUBBASE is the base virtual address for the memory scrubber * to read large pages. It MUST be 4MB page aligned. **** @PreInterruptRelated ****** place:function ******** @PreInterruptRelated @FlowCallerCallee /home/yyzhou/pad/software-os-src/freebsd/contrib/dev/acpica/evgpe.c:594:0 AcpiOsReleaseLock (AcpiGbl_GpeLock, Flags); return (IntStatus); } !!/******************************************************************************* * * FUNCTION: AcpiEvAsynchExecuteGpeMethod * * PARAMETERS: Context (GpeEventInfo) - Info for this GPE * * RETURN: None * * DESCRIPTION: Perform the actual execution of a GPE control method. This * function is called from an invocation of AcpiOsExecute and * therefore does NOT execute at interrupt level - so that * the control method itself is not executed in the context of * an interrupt handler. * ******************************************************************************/ static void ACPI_SYSTEM_XFACE AcpiEvAsynchExecuteGpeMethod ( void *Context) { ******** @PreInterruptRelated /home/yyzhou/pad/software-os-src/linux/drivers/net/chelsio/sge.c:655:0 } } q->cidx = cidx; } !!/* * Free TX resources. * * Assumes that SGE is stopped and all interrupts are disabled. */ static void free_tx_resources(struct sge *sge) { struct pci_dev *pdev = sge->adapter->pdev; unsigned int size, i; ******** @PreInterruptRelated /home/yyzhou/pad/software-os-src/linux/drivers/net/chelsio/sge.c:1963:0 ret = NETDEV_TX_OK; } return ret; } !!/* * Callback for the Tx buffer reclaim timer. Runs with softirqs disabled. */ static void sge_tx_reclaim_cb(unsigned long data) { int i; struct sge *sge = (struct sge *)data; *** @Magic ****** place:assign ******** @Magic /home/yyzhou/pad/software-os-src/linux/sound/oss/sb_ess.c:1259:2 if (dma > 3 || dma < 0 || dma == 2) { dma_bits = 0; printk(KERN_ERR "ESS1688: Invalid DMA8 %d\n", dma); return 0; } else { !! /* Extended mode DMA enable */ cfg = 0x50; if (dma == 3) { dma_bits = 3; } else { ****** place:assignfield ******** @Magic /home/yyzhou/pad/software-os-src/opensolaris/common/brand/lx/procfs/lx_prsubr.c:469:27 lxpnp->lxpr_mode = 0511; break; case LXPR_NETDIR: vp->v_type = VDIR; !! lxpnp->lxpr_mode = 0555; /* read-search by all */ break; case LXPR_PID_ENV: case LXPR_PID_MEM: ASSERT(p != NULL); ******** @Magic /home/yyzhou/pad/software-os-src/opensolaris/common/os/dumpsubr.c:521:19 dumpvp_write(mctl->b_rptr, MBLKL(mctl)); dumpvp_write(mdata->b_rptr, MBLKL(mdata)); } } while ((qlast = q) != log_consq); !! ld.ld_magic = 0; /* indicate end of messages */ dumpvp_write(&ld, sizeof (ld)); (void) dumpvp_flush(); if (!panicstr) { (void) VOP_PUTPAGE(dumpvp, dumpvp_start, (size_t)(dumpvp_off - dumpvp_start), ****** place:case ******** @Magic /home/yyzhou/pad/software-os-src/freebsd/dev/usb/if_ural.c:1022:1 case 4: case 11: case 22: return (ic->ic_curmode == IEEE80211_MODE_11B) ? 4 : rate; !! /* OFDM rates */ case 12: case 18: return 12; case 24: case 36: ******** @Magic @AbuseInt /home/yyzhou/pad/software-os-src/linux/drivers/input/tablet/wacom_wac.c:329:15 break; case 0x096: /* Lens cursor */ case 0x097: /* Intuos3 Lens cursor */ wacom->tool[idx] = BTN_TOOL_LENS; break; !! case 0x82a: /* Eraser */ case 0x85a: case 0x91a: case 0xd1a: case 0x0fa: case 0x82b: /* Intuos3 Grip Pen Eraser */ ******** @Magic /home/yyzhou/pad/software-os-src/linux/drivers/scsi/initio.c:2785:12 /* * Remap the firmware error status into a mid layer one */ switch (cblk->hastat) { case 0x0: !! case 0xa: /* Linked command complete without error and linked normally */ case 0xb: /* Linked command complete without error interrupt generated */ cblk->hastat = 0; break; case 0x11: /* Selection time out-The initiator selection or target ****** place:funcall ******** @Magic @Devil @AbuseInt @OsSpecific /home/yyzhou/pad/software-os-src/freebsd/dev/bktr/bktr_core.c:4104:48 } else { OUTL(bktr, BKTR_I2C_DATA_CTL, 0); DELAY( BITD ); /* assert LO data */ OUTL(bktr, BKTR_I2C_DATA_CTL, 2); !! DELAY( BITD ); /* strobe clock */ OUTL(bktr, BKTR_I2C_DATA_CTL, 0); DELAY( BITD ); /* release clock */ } } ******** @Magic @Devil /home/yyzhou/pad/software-os-src/freebsd/dev/sound/isa/ad1816.c:563:38 ad1816_init(struct ad1816_info *ad1816, device_t dev) { ad1816_write(ad1816, 1, 0x2); /* disable interrupts */ ad1816_write(ad1816, 32, 0x90F0); /* SoundSys Mode, split fmt */ !! ad1816_write(ad1816, 5, 0x8080); /* FM volume mute */ ad1816_write(ad1816, 6, 0x8080); /* I2S1 volume mute */ ad1816_write(ad1816, 7, 0x8080); /* I2S0 volume mute */ ad1816_write(ad1816, 17, 0x8888); /* VID Volume mute */ ad1816_write(ad1816, 20, 0x5050); /* recsrc mic, agc off */ /* adc gain is set to 0 */ ******** @Magic @AbuseInt /home/yyzhou/pad/software-os-src/linux/arch/s390/math-emu/math.c:304:8 int IR; FP_UNPACK_RAW_SP(SA, ¤t->thread.fp_regs.fprs[rx].f); FP_UNPACK_RAW_SP(SB, val); FP_CMP_S(IR, SA, SB, 3); !! /* * IR == -1 if DA < DB, IR == 0 if DA == DB, * IR == 1 if DA > DB and IR == 3 if unorderded */ emu_set_CC(regs, (IR == -1) ? 1 : (IR == 1) ? 2 : IR); return 0; } /* Compare and signal long double */ ******** @Magic /home/yyzhou/pad/software-os-src/linux/arch/xtensa/kernel/ptrace.c:317:1 return ret; } void do_syscall_trace(void) { !! /* * The 0x80 provides a way for the tracing parent to distinguish * between a syscall stop and SIGTRAP delivery */ ptrace_notify(SIGTRAP|((current->ptrace & PT_TRACESYSGOOD) ? 0x80 : 0)); /* * this isn't the same as continuing with a signal, but it will do * for normal use. strace only continues with a signal if the ******** @Magic /home/yyzhou/pad/software-os-src/linux/drivers/media/radio/radio-cadet.c:252:22 */ for(j=3;j>-1;j--) { cadet_settune(fifo|(j<<16)); spin_lock(&cadet_io_lock); !! outb(7,io); /* Select tuner control */ outb(curvol,io+1); spin_unlock(&cadet_io_lock); msleep(100); ******** @Magic /home/yyzhou/pad/software-os-src/linux/drivers/media/video/cx25840/cx25840-core.c:325:1 cx25840_write(client, 0x400, 0); /* Fast subchroma lock */ /* White crush, Chroma AGC & Chroma Killer enabled */ cx25840_write(client, 0x401, 0xe8); !! /* Select AFE clock pad output source */ cx25840_write(client, 0x144, 0x05); /* Do the firmware load in a work handler to prevent. Otherwise the kernel is blocked waiting for the bit-banging i2c interface to finish uploading the ****** place:function_misc ******** @Magic @AbuseInt /home/yyzhou/pad/software-os-src/freebsd/dev/mxge/if_mxge.c:2359:2 } /* if the checksum is valid, mark it in the mbuf header */ if (sc->csum_flag && (0 == (tcpudp_csum = mxge_rx_csum(m, csum)))) { if (sc->lro_cnt && (0 == mxge_lro_rx(ss, m, csum))) return; !! /* otherwise, it was a UDP frame, or a TCP frame which we could not do LRO on. Tell the stack that the checksum is good */ m->m_pkthdr.csum_data = 0xffff; m->m_pkthdr.csum_flags = CSUM_PSEUDO_HDR | CSUM_DATA_VALID; } /* pass the frame up the stack */ (*ifp->if_input)(ifp, m); ******** @Magic /home/yyzhou/pad/software-os-src/freebsd/dev/sound/midi/midi.c:1286:30 if (vel > 127) vel = 127; if (vel == 64) { !! c[0] = 0x90 | (chn & 0x0f); /* Note on. */ c[1] = (u_char)note; c[2] = 0; } else { c[0] = 0x80 | (chn & 0x0f); /* Note off. */ c[1] = (u_char)note; ******** @Magic /home/yyzhou/pad/software-os-src/freebsd/dev/syscons/syscons.c:802:33 * ptr->mv_norm.back * ptr->mv_rev.fore * ptr->mv_rev.back */ ptr->mv_grfc.fore = 0; /* not supported */ !! ptr->mv_grfc.back = 0; /* not supported */ ptr->mv_ovscan = scp->border; if (scp == sc->cur_scp) save_kbd_state(scp); ptr->mk_keylock = scp->status & LOCK_MASK; return 0; ******** @Magic /home/yyzhou/pad/software-os-src/opensolaris/common/fs/portfs/port.c:1497:3 /* Last thread => check close(2) conditions ... */ if (portq->portq_flags & PORTQ_CLOSE) { cv_signal(&portq->portq_closecv); mutex_exit(&portq->portq_mutex); kmem_free(results, eventsz * nmax); !! /* do not copyout events */ *nget = 0; return (EBADFD); } } else if (portq->portq_getn == 0) { /* ****** place:if ******** @Magic /home/yyzhou/pad/software-os-src/linux/drivers/isdn/gigaset/bas-gigaset.c:2236:1 return -ENODEV; } hostif = interface->cur_altsetting; } !! /* Reject application specific interfaces */ if (hostif->desc.bInterfaceClass != 255) { dev_warn(&udev->dev, "%s: bInterfaceClass == %d\n", __func__, hostif->desc.bInterfaceClass); return -ENODEV; } ******** @Magic /home/yyzhou/pad/software-os-src/linux/fs/jfs/jfs_txnmgr.c:243:1 int txInit(void) { int k, size; struct sysinfo si; !! /* Set defaults for nTxLock and nTxBlock if unset */ if (nTxLock == -1) { if (nTxBlock == -1) { /* Base default on memory size */ si_meminfo(&si); ******** @Magic /home/yyzhou/pad/software-os-src/linux/sound/pci/ice1712/prodigy192.c:330:17 int idx; unsigned char changed[7]; struct snd_ice1712 *ice = ak->private_data[0]; struct prodigy192_spec *spec = ice->spec; !! if (rate == 0) /* no hint - S/PDIF input is master, simply return */ return; else if (rate <= 48000) new = 0x08; /* 256x, base rate mode */ else if (rate <= 96000) new = 0x11; /* 256x, mid rate mode */ ****** place:variable ******** @Magic @Reminder @Repeat @AbuseInt /home/yyzhou/pad/software-os-src/linux/net/dccp/ipv4.c:1034:0 } module_init(dccp_v4_init); module_exit(dccp_v4_exit); !!/* * __stringify doesn't likes enums, so use SOCK_DCCP (6) and IPPROTO_DCCP (33) * values directly, Also cover the case where the protocol is not specified, * i.e. net-pf-PF_INET-proto-0-type-SOCK_DCCP */ MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 33, 6); MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_INET, 0, 6); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Arnaldo Carvalho de Melo <acme@mandriva.com>"); MODULE_DESCRIPTION("DCCP - Datagram Congestion Controlled Protocol"); *** @Error ****** place:assign ******** @Error /home/yyzhou/pad/software-os-src/opensolaris/common/fs/nfs/nfs4_srv_attr.c:925:16 na->acl.fattr4_acl_len = vs_ace4.vsa_aclcnt; /* see case NFS4ATTR_FREEIT for this being freed */ na->acl.fattr4_acl_val = vs_ace4.vsa_aclentp; } else { if (na->acl.fattr4_acl_len != vs_ace4.vsa_aclcnt) !! error = -1; /* no match */ else if (ln_ace4_cmp(na->acl.fattr4_acl_val, vs_ace4.vsa_aclentp, vs_ace4.vsa_aclcnt) != 0) error = -1; /* no match */ } ****** place:field ******** @Error /home/yyzhou/pad/software-os-src/opensolaris/common/sys/av/iec61883.h:89:16 int ii_flags; /* flags */ int ii_handle; /* isoch handle */ int ii_frame_rcnt; /* # of frames */ off_t ii_mmap_off; /* mmap offset */ int ii_rchannel; /* channel */ !! int ii_error; /* error code */ } iec61883_isoch_init_t; /* xfer directions (ii_direction) */ enum { IEC61883_DIR_RECV, ******** @Error /home/yyzhou/pad/software-os-src/opensolaris/common/sys/tihdr.h:609:31 struct T_discon_ind discon_ind; /* discon indication */ struct T_data_ind data_ind; /* data indication */ struct T_exdata_ind exdata_ind; /* expedited data ind */ struct T_info_ack info_ack; /* info ack */ struct T_bind_ack bind_ack; /* bind ack */ !! struct T_error_ack error_ack; /* error ack */ struct T_ok_ack ok_ack; /* ok ack */ struct T_unitdata_ind unitdata_ind; /* unitdata ind */ struct T_uderror_ind uderror_ind; /* unitdata error ind */ struct T_optmgmt_ack optmgmt_ack; /* manage opt ack */ struct T_ordrel_ind ordrel_ind; /* orderly rel ind */ ****** place:function ******** @Error @PreCondition @InOut /home/yyzhou/pad/software-os-src/freebsd/dev/hfa/fore_output.c:227:0 return; } !!/* * Build Transmit Segment Descriptors * * This function will take a supplied buffer chain of data to be transmitted * and build the transmit segment descriptors for the data. This will include * the dreaded operation of ensuring that the data for each transmit segment * is full-word aligned and (except for the last segment) is an integral number * of words in length. If the data isn't already aligned and sized as * required, then the data must be shifted (copied) into place - a sure * performance killer. Note that we rely on the fact that all buffer data * areas are allocated with (at least) full-word alignments/lengths. * * If any errors are encountered, the buffer chain will be freed. * * Arguments: * fup pointer to device unit * m pointer to output PDU buffer chain head * hxp pointer to host transmit queue entry * segp pointer to return the number of transmit segments * lenp pointer to return the pdu length * * Returns: * m build successful, pointer to (possibly new) head of * output PDU buffer chain * NULL build failed, buffer chain freed * */ static KBuffer * fore_xmit_segment(fup, m, hxp, segp, lenp) Fore_unit *fup; KBuffer *m; H_xmit_queue *hxp; ******** @Error /home/yyzhou/pad/software-os-src/freebsd/dev/usb/sl811hs.c:1439:0 #define DATA0_RD (0x03) #define DATA0_WR (0x07) #define SLHCI_TIMEOUT (5000) !!/* * Do a transaction. * return 1 if ACK, 0 if NAK, -1 if error. */ static int slhci_transaction(struct slhci_softc *sc, usbd_pipe_handle pipe, u_int8_t pid, int len, u_char *buf, u_int8_t toggle) { #ifdef SLHCI_DEBUG ******** @Error @DataAccess @ContextAdvice /home/yyzhou/pad/software-os-src/freebsd/kern/uipc_mbuf.c:1112:0 m_freem(n); MSFail++; return (NULL); } !!/* * Partition an mbuf chain in two pieces, returning the tail -- * all but the first len0 bytes. In case of failure, it returns NULL and * attempts to restore the chain to its original state. * * Note that the resulting mbufs might be read-only, because the new * mbuf can end up sharing an mbuf cluster with the original mbuf if * the "breaking point" happens to lie within a cluster mbuf. Use the * M_WRITABLE() macro to check for this case. */ struct mbuf * m_split(struct mbuf *m0, int len0, int wait) { struct mbuf *m, *n; u_int len = len0, remain; ******** @Error /home/yyzhou/pad/software-os-src/linux/arch/ia64/kernel/mca_drv.c:436:0 } return MCA_IS_GLOBAL; } !!/** * get_target_identifier - Get the valid Cache or Bus check target identifier. * @peidx: pointer of index of processor error section * * Return value: * target address on Success / 0 on Failure */ static u64 get_target_identifier(peidx_table_t *peidx) { u64 target_address = 0; sal_log_mod_error_info_t *smei; ******** @Error @LotsOfInfo /home/yyzhou/pad/software-os-src/opensolaris/common/io/lvm/softpart/sp_ioctl.c:1217:0 } return (err); } !!/* * FUNCTION: md_sp_ioctl() * INPUT: dev - device we are operating on. * cmd - ioctl to be handled. * data - data ptr. * mode - pass-through to copyin/copyout routines. * lockp - lock ptr. * OUTPUT: none. * RETURNS: 0 - success. * non-zero - error. * PURPOSE: Dispatch ioctl's. Administrative ioctl's are handled * by sp_admin_ioctl. All others (see comment at beginning * of this file) are handled in-line here. */ int md_sp_ioctl(dev_t dev, int cmd, void *data, int mode, IOLOCK *lockp) { minor_t mnum = getminor(dev); mp_unit_t *un; ******** @Error @FlowCallerCallee @LotsOfInfo /home/yyzhou/pad/software-os-src/opensolaris/common/vm/page_retire.c:1218:0 } return (rc); } !!/* * Test to see if the page_t for a given PA is retired, and return the * hardware errors we have seen on the page if requested. * * Called from mmioctl_page_retire on behalf of the FMA DE. * * Returns: * * - 0 if the page is retired, * - EIO if the page is not retired and has no errors, * - EAGAIN if the page is not retired but is pending; and * - EINVAL if the PA is whacko. */ int page_retire_check(uint64_t pa, uint64_t *errors) { page_t *pp; ******** @Error /home/yyzhou/pad/software-os-src/opensolaris/sun4u/opl/io/drmach.c:2862:0 void drmach_resume_first(void) { } !!/* * Log a DR sysevent. * Return value: 0 success, non-zero failure. */ int drmach_log_sysevent(int board, char *hint, int flag, int verbose) { sysevent_t *ev; sysevent_id_t eid; ****** place:if ******** @Error @AbuseInt /home/yyzhou/pad/software-os-src/freebsd/geom/part/g_part.c:373:16 scheme = (table != NULL) ? table->gpt_scheme : &g_part_null_scheme; pri = (scheme != &g_part_null_scheme) ? G_PART_PROBE(table, cp) : INT_MIN; if (pri == 0) goto done; !! if (pri > 0) { /* error */ scheme = &g_part_null_scheme; pri = INT_MIN; } SET_FOREACH(iter, g_part_scheme_set) { ****** place:parameter ******** @Error /home/yyzhou/pad/software-os-src/freebsd/netinet/libalias/alias.c:1446:23 return (iresult); } int LibAliasUnaliasOut(struct libalias *la, char *ptr, /* valid IP packet */ !! int maxpacketsize /* for error checking */ ) { struct ip *pip; struct icmp *ic; struct udphdr *ud; ****** place:return ******** @Error /home/yyzhou/pad/software-os-src/opensolaris/sun4u/boston/os/boston.c:224:19 /*ARGSUSED*/ int plat_cpu_poweron(struct cpu *cp) { !! return (ENOTSUP); /* not supported on this platform */ } /*ARGSUSED*/ int plat_cpu_poweroff(struct cpu *cp) ******** @Error /home/yyzhou/pad/software-os-src/opensolaris/sun4u/taco/os/taco.c:176:19 /*ARGSUSED*/ int plat_cpu_poweron(struct cpu *cp) { !! return (ENOTSUP); /* not supported on this platform */ } /*ARGSUSED*/ int plat_cpu_poweroff(struct cpu *cp) ****** place:unknown ******** @Error /home/yyzhou/pad/software-os-src/freebsd/dev/bce/if_bce.c:2022:0 /****************************************************************************/ /* Verifies that NVRAM is accessible and contains valid data. */ /* */ /* Reads the configuration data from NVRAM and verifies that the CRC is */ /* correct. */ !!/* */ /* Returns: */ /* 0 on success, positive value on failure. */ /****************************************************************************/ static int bce_nvram_test(struct bce_softc *sc) ******** @Error /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_bmap.c:129:14 /* * Called by xfs_bmap_add_extent to handle cases converting a hole * to a delayed allocation. */ !!STATIC int /* error */ xfs_bmap_add_extent_hole_delay( xfs_inode_t *ip, /* incore inode pointer */ xfs_extnum_t idx, /* extent number to update/insert */ xfs_btree_cur_t *cur, /* if null, not a btree */ xfs_bmbt_irec_t *new, /* new data to add to file extents */ ******** @Error /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_utils.c:302:7 /* * Decrement the link count on an inode & log the change. * If this causes the link count to go to zero, initiate the * logging activity required to truncate a file. */ !!int /* error */ xfs_droplink( xfs_trans_t *tp, xfs_inode_t *ip) { int error; ******** @Error @BeforeAfter @LotsOfInfo /home/yyzhou/pad/software-os-src/opensolaris/common/zmod/zlib.h:819:0 stream state was inconsistent. */ ZEXTERN int ZEXPORT inflateGetHeader OF((z_streamp strm, gz_headerp head)); !!/* inflateGetHeader() requests that gzip header information be stored in the provided gz_header structure. inflateGetHeader() may be called after inflateInit2() or inflateReset(), and before the first call of inflate(). As inflate() processes the gzip stream, head->done is zero until the header is completed, at which time head->done is set to one. If a zlib stream is being decoded, then head->done is set to -1 to indicate that there will be no gzip header information forthcoming. Note that Z_BLOCK can be used to force inflate() to return immediately after header processing is complete and before any actual data is decompressed. The text, time, xflags, and os fields are filled in with the gzip header contents. hcrc is set to true if there is a header CRC. (The header CRC was valid if done is set to one.) If extra is not Z_NULL, then extra_max contains the maximum number of bytes to write to extra. Once done is true, extra_len contains the actual extra field length, and extra contains the extra field, or that field truncated if extra_max is less than extra_len. If name is not Z_NULL, then up to name_max characters are written there, terminated with a zero unless the length is greater than name_max. If comment is not Z_NULL, then up to comm_max characters are written there, terminated with a zero unless the length is greater than comm_max. When any of extra, name, or comment are not Z_NULL and the respective field is not present in the header, then that field is set to Z_NULL to signal its absence. This allows the use of deflateSetHeader() with the returned structure to duplicate the header. However if those fields are set to allocated memory, then the application will need to save those pointers elsewhere so that they can be eventually freed. If inflateGetHeader is not used, then the header information is simply discarded. The header is always checked for validity, including the header CRC if present. inflateReset() will reset the process to discard the header information. The application would need to call inflateGetHeader() again to retrieve the header from the next gzip stream. inflateGetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source stream state was inconsistent. */ /* ZEXTERN int ZEXPORT inflateBackInit OF((z_streamp strm, int windowBits, unsigned char FAR *window)); *** !no objs!@DefaultValue *** @InOut ****** place:unknown ******** @InOut /home/yyzhou/pad/software-os-src/freebsd/contrib/ipfilter/netinet/fil.c:1348:0 } /* ------------------------------------------------------------------------ */ !!/* Function: frpr_ah */ /* Returns: void */ /* Parameters: fin(I) - pointer to packet information */ /* */ /* Analyse the packet for AH properties. */ /* The minimum length is taken to be the combination of all fields in the */ ******** @InOut @Range /home/yyzhou/pad/software-os-src/freebsd/contrib/ipfilter/netinet/fil.c:3637:0 dlen--; } return s; } /* ------------------------------------------------------------------------ */ !!/* Function: fr_fixskip */ /* Returns: Nil */ /* Parameters: listp(IO) - pointer to start of list with skip rule */ /* rp(I) - rule added/removed with skip in it. */ /* addremove(I) - adjustment (-1/+1) to make to skip count, */ /* depending on whether a rule was just added */ *** @PostEffect ****** place:funcall ******** @PostEffect @OsInterruptCheckable /home/yyzhou/pad/software-os-src/opensolaris/sun4u/starcat/io/iosram.c:2493:1 mutex_exit(&softp->intr_mutex); mutex_exit(&iosram_mutex); return (rv); } !! /* * Disable SBBC interrupts. SBBC interrupts are enabled * once the interrupt handler is registered. */ ddi_put32(softp->sbbc_handle, &(softp->sbbc_region->int_enable.reg), 0x0); /* * Clear hardware semaphore value if appropriate. ****** place:function ******** @PostEffect @OsRegister /home/yyzhou/pad/software-os-src/freebsd/ia64/include/ia64_cpu.h:397:0 IA64_CR(cmcv) IA64_CR(lrr0) IA64_CR(lrr1) !!/* * Write a region register. */ static __inline void ia64_set_rr(u_int64_t rrbase, u_int64_t v) { __asm __volatile("mov rr[%0]=%1" :: "r"(rrbase), "r"(v) : "memory"); ******** @PostEffect /home/yyzhou/pad/software-os-src/freebsd/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c:180:0 ng_btsocket_l2cap_raw_node_constructor(node_p node) { return (EINVAL); } /* ng_btsocket_l2cap_raw_node_constructor */ !!/* * Do local shutdown processing. Let old node go and create new fresh one. */ static int ng_btsocket_l2cap_raw_node_shutdown(node_p node) { int error = 0; ******** @PostEffect @DataFlow @ObsoleteComment /home/yyzhou/pad/software-os-src/linux/drivers/net/igb/e1000_mac.c:1363:0 wr32(E1000_AIT, 0); out: return; } !!/** * e1000_update_adaptive - Update Adaptive Interframe Spacing * @hw: pointer to the HW structure * * Update the Adaptive Interframe Spacing Throttle value based on the * time between transmitted packets and time between collisions. **/ void igb_update_adaptive(struct e1000_hw *hw) { struct e1000_mac_info *mac = &hw->mac; if (!mac->adaptive_ifs) { ******** @PostEffect @CondRelated /home/yyzhou/pad/software-os-src/opensolaris/common/fs/cachefs/cachefs_fscache.c:1005:0 VN_RELE(fscdirvp); } return (error); } !!/* * fscache_info_sync * Writes out the fs_info data if necessary. */ static int fscache_info_sync(fscache_t *fscp) { caddr_t addr; int error = 0; ******** @PostEffect /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip/tun.c:798:0 * us as a device. */ putnext(RD(q), mp); } !!/* send a DL_ERROR_ACK back upstream */ static void tun_senderrack(queue_t *q, mblk_t *mp, t_uscalar_t prim, t_uscalar_t dl_err, t_uscalar_t error) { dl_error_ack_t *dl_err_ack; ******** @PostEffect /home/yyzhou/pad/software-os-src/opensolaris/common/os/contract.c:1739:0 if (e->cte_gdata) nvlist_free(e->cte_gdata); kmem_free(e, sizeof (ct_kevent_t)); } !!/* * cte_qrele * * Remove this listener's hold on the specified event, removing and * releasing the queue's hold on the event if appropriate. */ static void cte_qrele(ct_equeue_t *q, ct_listener_t *l, ct_kevent_t *e) { ct_member_t *member = &e->cte_nodes[q->ctq_listno]; ******** @PostEffect /home/yyzhou/pad/software-os-src/opensolaris/common/os/core.c:281:0 } *vpp = vp; return (error); } !!/* * Install the specified held cred into the process, and return a pointer to * the held cred which was previously the value of p->p_cred. */ static cred_t * set_cred(proc_t *p, cred_t *newcr) { cred_t *oldcr; uid_t olduid, newuid; ******** @PostEffect @CondRelated @LotsOfInfo /home/yyzhou/pad/software-os-src/opensolaris/common/os/cpu.c:2816:0 thread_free(t); } } } !!/* * Update the cpu_supp_freqs of this cpu. This information is returned * as part of cpu_info kstats. If the cpu_info_kstat exists already, then * maintain the kstat data size. */ void cpu_set_supp_freqs(cpu_t *cp, const char *freqs) { char clkstr[sizeof ("18446744073709551615") + 1]; /* ui64 MAX */ const char *lfreqs = clkstr; ****** place:unknown ******** @PostEffect /home/yyzhou/pad/software-os-src/freebsd/dev/snc/dp83932.c:524:0 sncreset(sc); ifp->if_flags |= temp; } } !!/* * stuff packet into sonic (at splnet) */ hide u_int sonicput(sc, m0, mtd_next) struct snc_softc *sc; struct mbuf *m0; int mtd_next; **** !no objs!@GlobalEffect **** @IOEffect ****** place:function_misc ******** @IOEffect /home/yyzhou/pad/software-os-src/linux/sound/oss/ac97_codec.c:924:1 return 0; } static int cmedia_init(struct ac97_codec *codec) { !! /* Initialise the CMedia 9739 */ /* We could set various options here Register 0x20 bit 0x100 sets mic as center bass Also do multi_channel_ctrl &=~0x3000 |=0x1000 **** @FieldEffect ****** place:function ******** @FieldEffect /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_trans.c:192:0 xfs_calc_clear_agi_bucket_reservation(xfs_mount_t *mp) { return XFS_CALC_CLEAR_AGI_BUCKET_LOG_RES(mp); } !!/* * Initialize the precomputed transaction reservation values * in the mount structure. */ void xfs_trans_init( xfs_mount_t *mp) { xfs_trans_reservations_t *resp; ******** @FieldEffect @EffectList /home/yyzhou/pad/software-os-src/opensolaris/common/io/ib/mgt/ibmf/ibmf_msg.c:37:0 #include <sys/ib/mgt/ibmf/ibmf_impl.h> extern int ibmf_trace_level; !!/* * ibmf_i_client_add_msg(): * Add the message to the client message list */ void ibmf_i_client_add_msg(ibmf_client_t *clientp, ibmf_msg_impl_t *msgimplp) { IBMF_TRACE_2(IBMF_TNF_DEBUG, DPRINT_L4, ibmf_i_client_add_msg_start, IBMF_TNF_TRACE, "", **** !no objs!@EffectList **** !no objs!@ExitEffect **** !no objs!@NoEffectDummy **** @EffectOther ****** place:funcall ******** @EffectOther /home/yyzhou/pad/software-os-src/freebsd/dev/en/midway.c:3029:1 EN_LOCK(sc); utopia_start(&sc->utopia); utopia_reset(&sc->utopia); EN_UNLOCK(sc); !! /* * final commit */ atm_ifattach(ifp); #ifdef ENABLE_BPF bpfattach(ifp, DLT_ATM_RFC1483, sizeof(struct atmllc)); #endif ******** @EffectOther /home/yyzhou/pad/software-os-src/freebsd/fs/coda/coda_venus.c:222:27 int venus_close(void *mdp, CodaFid *fid, int flag, struct ucred *cred, struct proc *p) { int cflag; !! DECL_NO_OUT(coda_close); /* sets Isize & Osize */ ALLOC_NO_OUT(coda_close); /* sets inp & outp */ INIT_IN(&inp->ih, CODA_CLOSE, cred, p); inp->Fid = *fid; CNV_OFLAG(cflag, flag); ******** @EffectOther /home/yyzhou/pad/software-os-src/freebsd/fs/coda/coda_venus.c:629:30 INIT_IN(&inp->ih, CODA_SYMLINK, cred, p); inp->Fid = *fid; CNV_V2VV_ATTR(&inp->attr, va); inp->srcname = Isize; !! STRCPY(srcname, lnm, llen); /* increments Isize */ inp->tname = Isize; STRCPY(tname, nm, len); /* increments Isize */ error = coda_call(mdp, Isize, &Osize, (char *)inp); ******** @EffectOther /home/yyzhou/pad/software-os-src/freebsd/i386/svr4/svr4_machdep.c:169:1 s->ss_size = 16384; s->ss_flags = 0; #endif PROC_UNLOCK(p); !! /* * Set the signal mask */ bsd_to_svr4_sigset(mask, &uc->uc_sigmask); /* * Set the flags */ ******** @EffectOther /home/yyzhou/pad/software-os-src/linux/drivers/char/agp/nvidia-agp.c:398:1 { /* set power state 0 and restore PCI space */ pci_set_power_state (pdev, 0); pci_restore_state(pdev); !! /* reconfigure AGP hardware again */ nvidia_configure(); return 0; } #endif ******** @EffectOther /home/yyzhou/pad/software-os-src/linux/drivers/media/video/ivtv/ivtv-yuv.c:108:1 dma->page_count = 0; return -ENOMEM; } dma->SG_length = pci_map_sg(itv->dev, dma->SGlist, dma->page_count, PCI_DMA_TODEVICE); !! /* Fill SG Array with new values */ ivtv_udma_fill_sg_array(dma, y_buffer_offset, uv_buffer_offset, y_size); /* If we've offset the y plane, ensure top area is blanked */ if (f->offset_y && yi->blanking_dmaptr) { dma->SGarray[dma->SG_length].size = cpu_to_le32(720*16); ******** @EffectOther /home/yyzhou/pad/software-os-src/linux/drivers/net/tulip/tulip_core.c:311:54 if (tp->mii_cnt || (tp->mtable && tp->mtable->has_mii)) iowrite32(0x00040000, ioaddr + CSR6); /* Reset the chip, holding bit 0 set at least 50 PCI cycles. */ iowrite32(0x00000001, ioaddr + CSR0); !! pci_read_config_dword(tp->pdev, PCI_COMMAND, ®); /* flush write */ udelay(100); /* Deassert reset. Wait the specified 50 PCI cycles after a reset by initializing Tx and Rx queues and the address filter list. */ ******** @EffectOther /home/yyzhou/pad/software-os-src/linux/drivers/scsi/scsi_transport_fc.c:2258:1 fc_queue_work(shost, &rport->rport_delete_work); } spin_unlock_irqrestore(shost->host_lock, flags); !! /* flush all scan work items */ scsi_flush_work(shost); /* flush all stgt delete, and rport delete work items, then kill it */ if (fc_host->work_q) { work_q = fc_host->work_q; ******** @EffectOther @StupidComment /home/yyzhou/pad/software-os-src/opensolaris/common/io/1394/targets/dcam1394/dcam_frame.c:592:1 /* mark frame's timestamp */ ring_buff_p->buff_info_array_p[write_ptr_pos].timestamp = gethrtime(); !! /* increment write pointer */ ring_buff_write_ptr_incr(ring_buff_p); num_read_ptrs = 1; for (read_ptr_id = 0; read_ptr_id < num_read_ptrs; read_ptr_id++) { ******** @EffectOther /home/yyzhou/pad/software-os-src/opensolaris/i86pc/os/startup.c:1411:1 */ param_calc(0); mod_setup(); !! /* * Initialize system parameters. */ param_init(); /* * Initialize the default brands */ ****** place:function ******** @EffectOther /home/yyzhou/pad/software-os-src/linux/kernel/time/tick-broadcast.c:126:0 } spin_unlock_irqrestore(&tick_broadcast_lock, flags); return ret; } !!/* * Broadcast the event to the cpus, which are set in the mask */ static void tick_do_broadcast(cpumask_t mask) { int cpu = smp_processor_id(); struct tick_device *td; ******** @EffectOther /home/yyzhou/pad/software-os-src/opensolaris/common/fs/cachefs/cachefs_fscache.c:770:0 } return (count); } !!/* * Creates the fs cache directory. * The directory name is the ascii version of the fsid. * Also makes a symlink to the directory using the specified name. */ int fscdir_create(cachefscache_t *cachep, char *namep, fscache_t *fscp) { int error; vnode_t *fscdirvp = NULL; ******** @EffectOther /home/yyzhou/pad/software-os-src/opensolaris/common/ipp/flowacct/flowacct.c:656:0 flowacct_data->flow_tid = timeout(flowacct_timeout_flows, flowacct_data, drv_usectohz(flowacct_data->timer)); } !!/* Delete the item from the flow in the flow table */ static void flowacct_timeout_item(flow_t **flow, list_hdr_t **item_hdr) { list_hdr_t *next_it_hdr; ******** @EffectOther @OsMemory /home/yyzhou/pad/software-os-src/opensolaris/i86pc/os/pmem.c:697:0 } kmem_free(plp->pl_bitmap, BT_SIZEOFMAP(pmem_pgcnt)); kmem_free(plp, sizeof (*plp)); } !!/* Free one large page headed by spp from pmem_mpool. */ static void lpg_free(page_t *spp) { page_t *pp1 = spp; uint_t i; ****** place:function_misc ******** @EffectOther /home/yyzhou/pad/software-os-src/freebsd/contrib/dev/acpica/utdelete.c:716:4 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, "Obj %p Current Refs=%X [To Be Incremented]\n", Object, Object->Common.ReferenceCount)); !! /* Increment the reference count */ (void) AcpiUtUpdateObjectReference (Object, REF_INCREMENT); return_VOID; } ****** place:if ******** @EffectOther @CondRelated /home/yyzhou/pad/software-os-src/opensolaris/common/fs/nfs/nfs4_srv.c:8451:2 } } rfs4_update_lease(sp->owner->client); !! /* * Only update theh open_seqid if this is not * a duplicate request */ if (dup_lock == FALSE) { rfs4_update_open_sequence(sp->owner); } /* ****** place:unknown ******** @EffectOther @Error /home/yyzhou/pad/software-os-src/linux/drivers/char/ip2/i2ellis.c:117:0 // False if there is any error: the pB->i2eError field has the error // // Description: // // This routine (roughly) checks for address validity, sets the i2eValid OK and !!// sets the state to II_STATE_COLD which means that we haven't even sent a reset // yet. // //****************************************************************************** static int iiSetAddress( i2eBordStrPtr pB, int address, delayFunc_t delay ) ******** @EffectOther /home/yyzhou/pad/software-os-src/linux/drivers/isdn/hardware/eicon/idifunc.c:34:1 static DESCRIPTOR DAdapter; static DESCRIPTOR MAdapter; static void no_printf(unsigned char *x, ...) { !! /* dummy debug function */ } #include "debuglib.c" /* *** !no objs!@DataAccess **** !no objs!@Const *** @ModuleAndFunction ****** place:initalizer_misc ******** @ModuleAndFunction /home/yyzhou/pad/software-os-src/linux/net/irda/ircomm/ircomm_tty.c:89:38 .close = ircomm_tty_close, .write = ircomm_tty_write, .write_room = ircomm_tty_write_room, .chars_in_buffer = ircomm_tty_chars_in_buffer, .flush_buffer = ircomm_tty_flush_buffer, !! .ioctl = ircomm_tty_ioctl, /* ircomm_tty_ioctl.c */ .tiocmget = ircomm_tty_tiocmget, /* ircomm_tty_ioctl.c */ .tiocmset = ircomm_tty_tiocmset, /* ircomm_tty_ioctl.c */ .throttle = ircomm_tty_throttle, .unthrottle = ircomm_tty_unthrottle, .send_xchar = ircomm_tty_send_xchar, ****** place:macro_variable ******** @ModuleAndFunction @CondRelated /home/yyzhou/pad/software-os-src/freebsd/netgraph/ng_message.h:371:0 { "id", &ng_parse_hint32_type }, \ { NULL } \ } !!/* * For netgraph nodes that are somehow associated with file descriptors * (e.g., a device that has a /dev entry and is also a netgraph node), * we define a generic ioctl for requesting the corresponding nodeinfo * structure and for assigning a name (if there isn't one already). * * For these to you need to also #include <sys/ioccom.h>. */ #define NGIOCGINFO _IOR('N', 40, struct nodeinfo) /* get node info */ #define NGIOCSETNAME _IOW('N', 41, struct ngm_name) /* set node name */ #ifdef _KERNEL ****** place:prototype ******** @ModuleAndFunction /home/yyzhou/pad/software-os-src/linux/arch/um/include/os.h:217:0 /* tls.c */ extern int os_set_thread_area(user_desc_t *info, int pid); extern int os_get_thread_area(user_desc_t *info, int pid); !!/* umid.c */ extern int umid_file_name(char *name, char *buf, int len); extern int set_umid(char *name); extern char *get_umid(void); /* signal.c */ ****** place:unknown ******** @ModuleAndFunction /home/yyzhou/pad/software-os-src/linux/include/net/sctp/sctp.h:188:1 /* * Module global variables */ !! /* * sctp/protocol.c */ extern struct kmem_cache *sctp_chunk_cachep __read_mostly; extern struct kmem_cache *sctp_bucket_cachep __read_mostly; /* * Section: Macros, externs, and inlines ****** place:variable ******** @ModuleAndFunction /home/yyzhou/pad/software-os-src/opensolaris/common/io/scsi/targets/st.c:237:33 * the appropriate error, and this will preserve order. Of course, depending * on the exception we have to show a zero read or write before we show * errors back to the application. */ !!extern const int st_ndrivetypes; /* defined in st_conf.c */ extern const struct st_drivetype st_drivetypes[]; extern const char st_conf_version[]; #ifdef STDEBUG static int st_soft_error_report_debug = 0; *** !no objs!@TimeSpace **** @Time ****** place:assign ******** @Time /home/yyzhou/pad/software-os-src/freebsd/contrib/dev/acpica/excreate.c:698:4 /* Save the method's AML pointer and length */ ObjDesc->Method.AmlStart = AmlStart; ObjDesc->Method.AmlLength = AmlLength; !! /* * Disassemble the method flags. Split off the Arg Count * for efficiency */ MethodFlags = (UINT8) Operand[1]->Integer.Value; ObjDesc->Method.MethodFlags = (UINT8) (MethodFlags & ~AML_METHOD_ARG_COUNT); ObjDesc->Method.ParamCount = (UINT8) (MethodFlags & AML_METHOD_ARG_COUNT); ****** place:funcall ******** @Time @PreInterruptRelated /home/yyzhou/pad/software-os-src/linux/arch/powerpc/sysdev/qe_lib/qe_ic.c:226:1 temp = qe_ic_read(qe_ic->regs, qe_ic_info[src].mask_reg); qe_ic_write(qe_ic->regs, qe_ic_info[src].mask_reg, temp & ~qe_ic_info[src].mask); !! /* Flush the above write before enabling interrupts; otherwise, * spurious interrupts will sometimes happen. To be 100% sure * that the write has reached the device before interrupts are * enabled, the mask register would have to be read back; however, * this is not required for correctness, only to avoid wasting * time on a large number of spurious interrupts. In testing, * a sync reduced the observed spurious interrupts to zero. */ mb(); spin_unlock_irqrestore(&qe_ic_lock, flags); } **** !no objs!@Space ** !no objs!@Relationship *** @EndOfXXX ****** place:end_compound ******** @EndOfXXX /home/yyzhou/pad/software-os-src/opensolaris/common/io/pcmcia/pcram.c:3680:4 rs->sn, rs->card_size); } #endif !! } /* if (!pcram_build_region_lists(rs)) */ mutex_exit(&rs->region_lock); mutex_enter(&rs->event_hilock); rs->card_event |= PCRAM_CARD_INSERTED; ****** place:function ******** @EndOfXXX /home/yyzhou/pad/software-os-src/freebsd/crypto/sha2/sha2.c:425:6 /* Clean up */ a = b = c = d = e = f = g = h = T1 = 0; } !!#else /* SHA2_UNROLL_TRANSFORM */ void SHA256_Transform(SHA256_CTX* context, const sha2_word32* data) { sha2_word32 a, b, c, d, e, f, g, h, s0, s1; sha2_word32 T1, T2, *W256; int j; ****** place:function_misc ******** @EndOfXXX /home/yyzhou/pad/software-os-src/linux/drivers/net/irda/via-ircc.h:215:6 case 7: outb(7, MASK2); //Mask channel 7 break; default: break; !! }; //Switch } static unsigned char ReadLPCReg(int iRegNum) { unsigned char iVal; ****** place:initalizer_misc ******** @EndOfXXX /home/yyzhou/pad/software-os-src/opensolaris/common/io/cmlb.c:79:9 {"q", 16, S_IFBLK}, {"r", 17, S_IFBLK}, {"s", 18, S_IFBLK}, {"t", 19, S_IFBLK}, {"u", 20, S_IFBLK}, !!#endif /* defined(_FIRMWARE_NEEDS_FDISK) */ {"a,raw", 0, S_IFCHR}, {"b,raw", 1, S_IFCHR}, {"c,raw", 2, S_IFCHR}, {"d,raw", 3, S_IFCHR}, {"e,raw", 4, S_IFCHR}, ****** place:unknown ******** @EndOfXXX /home/yyzhou/pad/software-os-src/freebsd/arm/include/swi.h:22:7 #define SWI_OS_ARM 0xf00000 #define SWI_IMB 0xf00000 #define SWI_IMBrange 0xf00001 !!#endif /* !_MACHINE_SWI_H_ */ ******** @EndOfXXX /home/yyzhou/pad/software-os-src/freebsd/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_znode.h:298:7 #ifdef __cplusplus } #endif !!#endif /* _SYS_FS_ZFS_ZNODE_H */ ******** @EndOfXXX /home/yyzhou/pad/software-os-src/freebsd/dev/atkbdc/atkbdreg.h:48:7 int atkbd_attach_unit(int unit, keyboard_t **kbd, int ctlr, int irq, int flags); #endif !!#endif /* !_DEV_ATKBDC_ATKBDREG_H_ */ ******** @EndOfXXX /home/yyzhou/pad/software-os-src/freebsd/dev/safe/safe.c:133:7 static void safe_feed(struct safe_softc *, struct safe_ringentry *); static void safe_mcopy(struct mbuf *, struct mbuf *, u_int); #ifndef SAFE_NO_RNG static void safe_rng_init(struct safe_softc *); static void safe_rng(void *); !!#endif /* SAFE_NO_RNG */ static int safe_dma_malloc(struct safe_softc *, bus_size_t, struct safe_dma_alloc *, int); #define safe_dma_sync(_dma, _flags) \ bus_dmamap_sync((_dma)->dma_tag, (_dma)->dma_map, (_flags)) static void safe_dma_free(struct safe_softc *, struct safe_dma_alloc *); ******** @EndOfXXX /home/yyzhou/pad/software-os-src/freebsd/i386/include/profile.h:154:6 #ifdef _KERNEL void mcount(uintfptr_t frompc, uintfptr_t selfpc); !!#else /* !_KERNEL */ #include <sys/cdefs.h> __BEGIN_DECLS #ifdef __GNUCLIKE_ASM ******** @EndOfXXX /home/yyzhou/pad/software-os-src/freebsd/kern/kern_event.c:218:6 } while (0) #define KNL_ASSERT_UNLOCKED(knl) do { \ if (knl->kl_locked((knl)->kl_lockarg)) \ panic("knlist locked, but should not be"); \ } while (0) !!#else /* !INVARIANTS */ #define KNL_ASSERT_LOCKED(knl) do {} while(0) #define KNL_ASSERT_UNLOCKED(knl) do {} while (0) #endif /* INVARIANTS */ #define KN_HASHSIZE 64 /* XXX should be tunable */ ******** @EndOfXXX /home/yyzhou/pad/software-os-src/freebsd/vm/vm_extern.h:99:10 void vm_thread_dispose_altkstack(struct thread *td); int vm_thread_new(struct thread *td, int pages); int vm_thread_new_altkstack(struct thread *td, int pages); void vm_thread_swapin(struct thread *td); void vm_thread_swapout(struct thread *td); !!#endif /* _KERNEL */ #endif /* !_VM_EXTERN_H_ */ ******** @EndOfXXX /home/yyzhou/pad/software-os-src/linux/arch/powerpc/kernel/udbg_16550.c:227:7 (struct NS16550 __iomem *)PPC44x_EARLY_DEBUG_VIRTADDR; udbg_putc = udbg_44x_as1_putc; udbg_getc = udbg_44x_as1_getc; } !!#endif /* CONFIG_PPC_EARLY_DEBUG_44x */ #ifdef CONFIG_PPC_EARLY_DEBUG_40x static void udbg_40x_real_putc(char c) { if (udbg_comport) { ******** @EndOfXXX /home/yyzhou/pad/software-os-src/linux/drivers/media/dvb/frontends/tda18271.h:78:7 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__); return NULL; } #endif !!#endif /* __TDA18271_H__ */ ******** @EndOfXXX /home/yyzhou/pad/software-os-src/linux/drivers/net/pci-skeleton.c:1908:7 netdrv_hw_start (dev); return 0; } !!#endif /* CONFIG_PM */ static struct pci_driver netdrv_pci_driver = { .name = MODNAME, .id_table = netdrv_pci_tbl, ******** @EndOfXXX /home/yyzhou/pad/software-os-src/linux/fs/ocfs2/suballoc.h:158:7 /* somewhat more expensive than our other checks, so use sparingly. */ int ocfs2_check_group_descriptor(struct super_block *sb, struct ocfs2_dinode *di, struct ocfs2_group_desc *gd); !!#endif /* _CHAINALLOC_H_ */ ******** @EndOfXXX /home/yyzhou/pad/software-os-src/linux/include/asm-ia64/ucontext.h:12:7 #define uc_link uc_mcontext.sc_gr[0] /* wrong type; nobody cares */ #define uc_sigmask uc_mcontext.sc_sigmask #define uc_stack uc_mcontext.sc_stack !!#endif /* _ASM_IA64_UCONTEXT_H */ ******** @EndOfXXX /home/yyzhou/pad/software-os-src/opensolaris/common/io/chxge/sge.h:546:7 #ifdef __cplusplus } #endif !!#endif /* _CHELSIO_SGE_H */ ******** @EndOfXXX /home/yyzhou/pad/software-os-src/opensolaris/common/sys/scsi/scsi_resource.h:123:7 * turned out to be semantically equivialent to * scsi_resfree. */ #define scsi_pktfree scsi_resfree !!#endif /* _KERNEL */ #ifdef __cplusplus } #endif ******** @EndOfXXX /home/yyzhou/pad/software-os-src/opensolaris/sun4u/serengeti/io/sbdp_error.c:332:7 * Function name not found in matrix */ return (-1); } !!#endif /* DEBUG */ ******** @EndOfXXX /home/yyzhou/pad/software-os-src/opensolaris/sun4v/io/ds.c:2029:7 *curr++ = ' '; DS_DBG_MSG("%s\n", line); } } !!#endif /* DEBUG */ /* * Walk the table of registered services, executing the specified * callback function for each service. A non-zero return value from *** !no objs!@FileOrganization **** @SectionVisual ****** place:function ******** @SectionVisual /home/yyzhou/pad/software-os-src/freebsd/contrib/ipfilter/netinet/ip_state.c:2686:0 /* else pointer to rule for matching state */ /* Parameters: ifp(I) - pointer to interface */ /* passp(I) - pointer to filtering result flags */ /* */ /* Check if a packet is associated with an entry in the state table. */ !!/* ------------------------------------------------------------------------ */ frentry_t *fr_checkstate(fin, passp) fr_info_t *fin; u_32_t *passp; { ipstate_t *is; ******** @SectionVisual @Group /home/yyzhou/pad/software-os-src/freebsd/i4b/layer2/i4b_uframe.c:223:0 NDBGL2(L2_U_MSG, "tx SABME, tei = %d", l2sc->tei); m = i4b_build_u_frame(l2sc, CR_CMD_TO_NT, pbit, SABME); PH_Data_Req(l2sc->unit, m, MBUF_FREE); } !!/*---------------------------------------------------------------------------* * transmit DM response *---------------------------------------------------------------------------*/ void i4b_tx_dm(l2_softc_t *l2sc, fbit_t fbit) { struct mbuf *m; ******** @SectionVisual /home/yyzhou/pad/software-os-src/linux/drivers/char/hvc_xen.c:40:0 #define HVC_COOKIE 0x58656e /* "Xen" in hex */ static struct hvc_struct *hvc; static int xencons_irq; !!/* ------------------------------------------------------------------ */ static inline struct xencons_interface *xencons_interface(void) { return mfn_to_virt(xen_start_info->console.domU.mfn); } ******** @SectionVisual @Group /home/yyzhou/pad/software-os-src/linux/drivers/isdn/capi/capi.c:219:0 } spin_unlock_irqrestore(&mp->ackqlock, flags); } !!/* -------- struct capiminor ---------------------------------------- */ static struct capiminor *capiminor_alloc(struct capi20_appl *ap, u32 ncci) { struct capiminor *mp, *p; unsigned int minor = 0; ******** @SectionVisual /home/yyzhou/pad/software-os-src/linux/net/netfilter/nf_conntrack_h323_asn1.c:784:0 bs.bit = 0; return decode_choice(&bs, &ras_message, (char *) ras, 0); } !!/****************************************************************************/ static int DecodeH323_UserInformation(unsigned char *buf, unsigned char *beg, size_t sz, H323_UserInformation *uuie) { static const struct field_t h323_userinformation = { FNAME("H323-UserInformation") SEQ, 1, 2, 2, DECODE | EXT, ******** @SectionVisual /home/yyzhou/pad/software-os-src/linux/net/netfilter/nf_conntrack_h323_main.c:110:0 static struct nf_conntrack_helper nf_conntrack_helper_h245; static struct nf_conntrack_helper nf_conntrack_helper_q931[]; static struct nf_conntrack_helper nf_conntrack_helper_ras[]; !!/****************************************************************************/ static int get_tpkt_data(struct sk_buff *skb, unsigned int protoff, struct nf_conn *ct, enum ip_conntrack_info ctinfo, unsigned char **data, int *datalen, int *dataoff) { struct nf_ct_h323_master *info = &nfct_help(ct)->help.ct_h323_info; ****** place:macro_variable ******** @SectionVisual /home/yyzhou/pad/software-os-src/freebsd/dev/trm/trm.h:856:0 #define DMA_ENHANCE 0x8000 /* Enable DMA enhance feature */ /* *************************************** */ #define TRMREG_DMA_XCNT 0xA8 /* DMA Transfer Counter (R/W)*/ !!/* *************************************** */ #define TRMREG_DMA_CXCNT 0xAC /* DMA Current Transfer Counter (R) */ /* *************************************** */ #define TRMREG_DMA_XLOWADDR 0xB0 /* DMA Transfer Physical Low Address */ ******** @SectionVisual @Group /home/yyzhou/pad/software-os-src/linux/drivers/misc/thinkpad_acpi.c:4083:0 .read = ecdump_read, .write = ecdump_write, .flags.experimental = 1, }; !!/************************************************************************* * Backlight/brightness subdriver */ #define TPACPI_BACKLIGHT_DEV_NAME "thinkpad_screen" static struct backlight_device *ibm_backlight_device; static int brightness_offset = 0x31; ****** place:prototype ******** @SectionVisual @Group /home/yyzhou/pad/software-os-src/linux/drivers/net/wireless/ray_cs.c:133:0 static int interrupt_ecf(ray_dev_t *local, int ccs); static void ray_reset(struct net_device *dev); static void ray_update_parm(struct net_device *dev, UCHAR objid, UCHAR *value, int len); static void verify_dl_startup(u_long); !!/* Prototypes for interrpt time functions **********************************/ static irqreturn_t ray_interrupt (int reg, void *dev_id); static void clear_interrupt(ray_dev_t *local); static void rx_deauthenticate(ray_dev_t *local, struct rcs __iomem *prcs, unsigned int pkt_addr, int rx_len); static int copy_from_rx_buff(ray_dev_t *local, UCHAR *dest, int pkt_addr, int len); ****** place:unknown ******** @SectionVisual /home/yyzhou/pad/software-os-src/freebsd/boot/arm/at91/libat91/at91rm9200.h:768:0 #define AT91C_AIC_DCR_PROT (0x1u << 0) // (AIC) Protection Mode #define AT91C_AIC_DCR_GMSK (0x1u << 1) // (AIC) General Mask // ***************************************************************************** // SOFTWARE API DEFINITION FOR Serial Parallel Interface !!// ***************************************************************************** typedef struct _AT91S_SPI { AT91_REG SPI_CR; // Control Register AT91_REG SPI_MR; // Mode Register AT91_REG SPI_RDR; // Receive Data Register AT91_REG SPI_TDR; // Transmit Data Register ******** @SectionVisual @Group /home/yyzhou/pad/software-os-src/freebsd/contrib/dev/acpica/common/dmtbinfo.c:240:0 {ACPI_DMT_UINT64, ACPI_GAS_OFFSET (Address), "Address"}, {ACPI_DMT_EXIT, 0, NULL} }; !!/******************************************************************************* * * RSDP - Root System Description Pointer (Signature is "RSD PTR ") * ******************************************************************************/ ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp1[] = { {ACPI_DMT_NAME8, ACPI_RSDP_OFFSET (Signature[0]), "Signature"}, {ACPI_DMT_UINT8, ACPI_RSDP_OFFSET (Checksum), "Checksum"}, ******** @SectionVisual @Group /home/yyzhou/pad/software-os-src/freebsd/dev/idt/idt.c:249:1 /* -------- interface routines -------- */ int nicstar_output(struct ifnet *, struct mbuf *, struct sockaddr *, struct rtentry *); void nicstar_start(struct ifnet *); !! /* -------- VCC open/close routines -------- */ static void nicstar_itrx(nicstar_reg_t *); /* -------- receiving routines -------- */ static void nicstar_rawc(nicstar_reg_t *); static void nicstar_recv(nicstar_reg_t *); ******** @SectionVisual @Group /home/yyzhou/pad/software-os-src/freebsd/netgraph/atm/sscop/ng_sscop.c:660:0 } } return 0; } !!/************************************************************/ /* * DATA */ static int ng_sscop_rcvlower(hook_p hook, item_p item) ******** @SectionVisual @Group /home/yyzhou/pad/software-os-src/linux/drivers/atm/lanai.c:844:0 { DPRINTK("aal0_buffer_allocate: freeing AAL0 RX buffer\n"); lanai_buf_deallocate(&lanai->aal0buf, lanai->pci); } !!/* -------------------- EEPROM UTILITIES: */ /* Offsets of data in the EEPROM */ #define EEPROM_COPYRIGHT (0) #define EEPROM_COPYRIGHT_LEN (44) #define EEPROM_CHECKSUM (62) ******** @SectionVisual /home/yyzhou/pad/software-os-src/linux/drivers/isdn/hardware/eicon/pc.h:68:0 /*------------------------------------------------------------------*/ /* SWReg Values (0 means no command) */ /*------------------------------------------------------------------*/ #define SWREG_DIE_WITH_LEDON 0x01 #define SWREG_HALT_CPU 0x02 /* Push CPU into a while(1) loop */ !!/*------------------------------------------------------------------*/ /* Id Fields Coding */ /*------------------------------------------------------------------*/ #define ID_MASK 0xe0 /* Mask for the ID field */ #define GL_ERR_ID 0x1f /* ID for error reporting on global requests*/ #define DSIG_ID 0x00 /* ID for D-channel signaling */ ******** @SectionVisual /home/yyzhou/pad/software-os-src/linux/drivers/scsi/dc395x.h:577:0 #define TRM_S1040_DMA_XCNT 0xA8 /* DMA Transfer Counter (R/W), 24bits */ #define TRM_S1040_DMA_CXCNT 0xAC /* DMA Current Transfer Counter (R) */ #define TRM_S1040_DMA_XLOWADDR 0xB0 /* DMA Transfer Physical Low Address */ #define TRM_S1040_DMA_XHIGHADDR 0xB4 /* DMA Transfer Physical High Address */ !!/************************************************************************/ /* */ /* The general register offset for TRM_S1040 */ /* */ /************************************************************************/ #define TRM_S1040_GEN_CONTROL 0xD4 /* Global Control */ ******** @SectionVisual /home/yyzhou/pad/software-os-src/linux/security/keys/process_keys.c:346:0 return 0; } /* end exec_keys() */ !!/*****************************************************************************/ /* * deal with SUID programs * - we might want to make this invent a new session keyring */ int suid_keys(struct task_struct *tsk) **** @SectionClassic ****** place:function ******** @SectionClassic /home/yyzhou/pad/software-os-src/linux/arch/mips/kernel/irixelf.c:57:0 .load_shlib = load_irix_library, .core_dump = irix_core_dump, .min_coredump = PAGE_SIZE, }; !!/* Debugging routines. */ static char *get_elf_p_type(Elf32_Word p_type) { #ifdef DEBUG switch (p_type) { case PT_NULL: ****** place:unknown ******** @SectionClassic /home/yyzhou/pad/software-os-src/linux/drivers/net/wireless/spectrum_cs.c:48:0 MODULE_AUTHOR("Pavel Roskin <proski@gnu.org>"); MODULE_DESCRIPTION("Driver for Symbol Spectrum24 Trilogy cards with firmware downloader"); MODULE_LICENSE("Dual MPL/GPL"); !!/* Module parameters */ /* Some D-Link cards have buggy CIS. They do work at 5v properly, but * don't have any CIS entry for it. This workaround it... */ static int ignore_cis_vcc; /* = 0 */ module_param(ignore_cis_vcc, int, 0); ****** place:variable ******** @SectionClassic /home/yyzhou/pad/software-os-src/linux/sound/pci/hda/patch_realtek.c:13295:0 #define alc662_pcm_analog_playback alc880_pcm_analog_playback #define alc662_pcm_analog_capture alc880_pcm_analog_capture #define alc662_pcm_digital_playback alc880_pcm_digital_playback #define alc662_pcm_digital_capture alc880_pcm_digital_capture !!/* * configuration and preset */ static const char *alc662_models[ALC662_MODEL_LAST] = { [ALC662_3ST_2ch_DIG] = "3stack-dig", [ALC662_3ST_6ch_DIG] = "3stack-6ch-dig", [ALC662_3ST_6ch] = "3stack-6ch", [ALC662_5ST_DIG] = "6stack-dig", **** @Group ****** place:enum_value ******** @Group /home/yyzhou/pad/software-os-src/linux/drivers/net/wireless/iwlwifi/iwl-3945-commands.h:107:1 /* Power Management */ POWER_TABLE_CMD = 0x77, PM_SLEEP_NOTIFICATION = 0x7A, PM_DEBUG_STATISTIC_NOTIFIC = 0x7B, !! /* Scan commands and notifications */ REPLY_SCAN_CMD = 0x80, REPLY_SCAN_ABORT_CMD = 0x81, SCAN_START_NOTIFICATION = 0x82, SCAN_RESULTS_NOTIFICATION = 0x83, SCAN_COMPLETE_NOTIFICATION = 0x84, ****** place:field ******** @Group /home/yyzhou/pad/software-os-src/freebsd/powerpc/include/bus.h:185:1 void (*bs_wm_s_4)(bus_space_handle_t, bus_size_t, const uint32_t *, bus_size_t); void (*bs_wm_s_8)(bus_space_handle_t, bus_size_t, const uint64_t *, bus_size_t); !! /* write region */ void (*bs_wr_1)(bus_space_handle_t, bus_size_t, const uint8_t *, bus_size_t); void (*bs_wr_2)(bus_space_handle_t, bus_size_t, const uint16_t *, bus_size_t); void (*bs_wr_4)(bus_space_handle_t, bus_size_t, ******** @Group /home/yyzhou/pad/software-os-src/linux/drivers/s390/char/tty3270.c:84:1 unsigned int cx, cy; /* Current output position. */ unsigned int highlight; /* Blink/reverse/underscore */ unsigned int f_color; /* Foreground color */ struct tty3270_line *screen; !! /* Input stuff. */ struct string *prompt; /* Output string for input area. */ struct string *input; /* Input string for read request. */ struct raw3270_request *read; /* Single read request. */ struct raw3270_request *kreset; /* Single keyboard reset request. */ unsigned char inattr; /* Visible/invisible input. */ ******** @Group /home/yyzhou/pad/software-os-src/opensolaris/common/sys/1394/adapters/hci1394_ohci.h:552:1 * structure to make debugging easier. */ hci1394_buf_info_t ohci_selfid; hci1394_buf_info_t ohci_cfgrom; !! /* OpenHCI registers */ ddi_acc_handle_t ohci_reg_handle; hci1394_regs_t *ohci_regs; /* * This mutex is used to protect "atomic" operations to the OpenHCI ****** place:funcall ******** @Group /home/yyzhou/pad/software-os-src/freebsd/opencrypto/rmd160.c:326:1 R(c, d, e, a, b, F2, KK2, 14, 2); R(b, c, d, e, a, F2, KK2, 13, 10); R(a, b, c, d, e, F2, KK2, 13, 0); R(e, a, b, c, d, F2, KK2, 7, 4); R(d, e, a, b, c, F2, KK2, 5, 13); /* #47 */ !! /* Parallel round 4 */ R(c, d, e, a, b, F1, KK3, 15, 8); R(b, c, d, e, a, F1, KK3, 5, 6); R(a, b, c, d, e, F1, KK3, 8, 4); R(e, a, b, c, d, F1, KK3, 11, 1); R(d, e, a, b, c, F1, KK3, 14, 3); ****** place:function_misc ******** @Group /home/yyzhou/pad/software-os-src/freebsd/compat/svr4/svr4_termios.c:248:1 svr4_to_bsd_termios(st, bt, new) const struct svr4_termios *st; struct termios *bt; int new; { !! /* control characters */ /* * We process VMIN and VTIME first, * because they are shared with VEOF and VEOL */ svr4_to_bsd_char(V,MIN); ******** @Group /home/yyzhou/pad/software-os-src/freebsd/contrib/dev/acpica/common/dmtbdump.c:576:4 /* Main table */ AcpiDmDumpTable (Length, 0, Table, 0, AcpiDmTableInfoMadt); !! /* Sub-tables */ SubTable = ACPI_ADD_PTR (ACPI_SUBTABLE_HEADER, Table, Offset); while (Offset < Table->Length) { /* Common sub-table header */ ****** place:initalizer_misc ******** @Group /home/yyzhou/pad/software-os-src/freebsd/dev/iicbus/iicsmb.c:107:1 DEVMETHOD(device_identify, iicsmb_identify), DEVMETHOD(device_probe, iicsmb_probe), DEVMETHOD(device_attach, iicsmb_attach), DEVMETHOD(device_detach, iicsmb_detach), !! /* bus interface */ DEVMETHOD(bus_driver_added, bus_generic_driver_added), DEVMETHOD(bus_print_child, bus_generic_print_child), /* iicbus interface */ DEVMETHOD(iicbus_intr, iicsmb_intr), ******** @Group /home/yyzhou/pad/software-os-src/freebsd/i386/i386/io_apic.c:864:1 } return (0); } static device_method_t apic_methods[] = { !! /* Device interface */ DEVMETHOD(device_identify, apic_identify), DEVMETHOD(device_probe, apic_probe), DEVMETHOD(device_attach, apic_attach), { 0, 0 } ******** @Group /home/yyzhou/pad/software-os-src/opensolaris/intel/io/acpica/resources/rsinfo.c:256:4 }; const UINT8 AcpiGbl_ResourceStructSizes[] = { !! /* Small descriptors */ 0, 0, 0, 0, ****** place:macro_function ******** @Group /home/yyzhou/pad/software-os-src/freebsd/dev/ipw/if_ipwreg.h:322:0 #define IPW_EEPROM_Q (1 << 4) /* Serial data output */ #define IPW_EEPROM_SHIFT_D 2 #define IPW_EEPROM_SHIFT_Q 4 !!/* * control and status registers access macros */ #define CSR_READ_1(sc, reg) \ bus_space_read_1((sc)->sc_st, (sc)->sc_sh, (reg)) #define CSR_READ_2(sc, reg) \ bus_space_read_2((sc)->sc_st, (sc)->sc_sh, (reg)) ****** place:macro_variable ******** @Group /home/yyzhou/pad/software-os-src/linux/drivers/char/rio/cirrus.h:153:0 #define MSVR1_CD 0x80 /* CD (DSR on Cirrus) */ #define MSVR1_RTS 0x40 /* RTS (CTS on Cirrus) */ #define MSVR1_RI 0x20 /* RI */ #define MSVR1_DTR 0x10 /* DTR (CD on Cirrus) */ #define MSVR1_CTS 0x01 /* CTS output pin (RTS on Cirrus) */ !!/* Next two used to indicate state of tbusy and tstop to driver */ #define MSVR1_TSTOP 0x08 /* Set if port flow controlled */ #define MSVR1_TEMPTY 0x04 /* Set if port tx buffer empty */ #define MSVR1_HOST 0xf3 /* The bits the host wants */ ******** @Group @DataFlow /home/yyzhou/pad/software-os-src/opensolaris/common/sys/pcmcia.h:206:0 } pcmcia_cs_t; #define PCCS_MAGIC 0x50434353 #define PCCS_VERSION _VERSION(2, 1) !!/* properties used by the nexus for setup */ #define ADAPT_PROP "adapters" /* property used to find adapter list */ #define CS_PROP "card-services" /* property specifying Card Services */ #define DEF_DRV_PROP "default-driver" /* default driver to load if no CIS */ /* ****** place:prototype ******** @Group /home/yyzhou/pad/software-os-src/linux/drivers/message/i2o/core.h:44:0 extern int i2o_device_parse_lct(struct i2o_controller *); int i2o_parm_issue(struct i2o_device *i2o_dev, int cmd, void *oplist, int oplen, void *reslist, int reslen); !!/* IOP */ extern struct i2o_controller *i2o_iop_alloc(void); /** * i2o_iop_free - Free the i2o_controller struct * @c: I2O controller to free ******** @Group /home/yyzhou/pad/software-os-src/linux/include/acpi/acutils.h:374:0 struct acpica_device_id *uid); acpi_status acpi_ut_execute_sxds(struct acpi_namespace_node *device_node, u8 * highest); !!/* * utobject - internal object create/delete/cache routines */ union acpi_operand_object *acpi_ut_create_internal_object_dbg(char *module_name, u32 line_number, u32 component_id, acpi_object_type type); ****** place:struct ******** @Group /home/yyzhou/pad/software-os-src/freebsd/netinet/sctp_uio.h:210:0 #define SCTP_RESTART 0x0003 #define SCTP_SHUTDOWN_COMP 0x0004 #define SCTP_CANT_STR_ASSOC 0x0005 !!/* * Address event */ struct sctp_paddr_change { uint16_t spc_type; uint16_t spc_flags; uint32_t spc_length; struct sockaddr_storage spc_aaddr; ******** @Group /home/yyzhou/pad/software-os-src/linux/drivers/sbus/char/jsflash.c:97:0 __asm__ __volatile__("sta %0, [%1] %2\n\t" : : "r" (data), "r" (addr), "i" (ASI_M_BYPASS) : "memory"); } !!/* * soft carrier */ struct jsfd_part { unsigned long dbase; unsigned long dsize; }; ****** place:struct_misc ******** @Group @EndOfXXX /home/yyzhou/pad/software-os-src/freebsd/sys/mtio.h:115:0 struct mtget { short mt_type; /* type of magtape device */ /* the following two registers are grossly device dependent */ short mt_dsreg; /* ``drive status'' register */ short mt_erreg; /* ``error'' register */ !!/* end device-dependent registers */ /* * Note that the residual count, while maintained, may be * be nonsense because the size of the residual may (greatly) * exceed 32 K-bytes. Use the MTIOCERRSTAT ioctl to get a * more accurate count. ****** place:unknown ******** @Group /home/yyzhou/pad/software-os-src/freebsd/dev/usb/if_rue.c:120:0 #else #define DPRINTFN(n, x) #endif #define DPRINTF(x) DPRINTFN(0, x) !!/* * Various supported device vendors/products. */ static struct rue_type rue_devs[] = { { USB_VENDOR_MELCO, USB_PRODUCT_MELCO_LUAKTX }, { USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_USBKR100 }, { 0, 0 } ******** @Group /home/yyzhou/pad/software-os-src/linux/arch/ppc/kernel/head_booke.h:106:1 mfspr r11,exc_level_srr1; /* check whether user or kernel */\ andi. r11,r11,MSR_PR; \ mr r11,r8; \ mfspr r8,exc_level##_SPRG; \ beq 1f; \ !! /* COMING FROM USER MODE */ \ mfspr r11,SPRN_SPRG3; /* if from user, start at top of */\ lwz r11,THREAD_INFO-THREAD(r11); /* this thread's kernel stack */\ addi r11,r11,THREAD_SIZE; \ 1: subi r11,r11,INT_FRAME_SIZE; /* Allocate an exception frame */\ stw r10,_CCR(r11); /* save various registers */\ ******** @Group @OsRegister /home/yyzhou/pad/software-os-src/opensolaris/common/io/chxge/com/fpga_defs.h:75:0 #define FPGA_GMAC_INTERRUPT_PORT0 0x1 #define FPGA_GMAC_INTERRUPT_PORT1 0x2 #define FPGA_GMAC_INTERRUPT_PORT2 0x4 #define FPGA_GMAC_INTERRUPT_PORT3 0x8 !!/* MI0 registers */ #define A_MI0_CLK 0xb00 #define S_MI0_CLK_DIV 0 #define M_MI0_CLK_DIV 0xff #define V_MI0_CLK_DIV(x) ((x) << S_MI0_CLK_DIV) ******** @Group /home/yyzhou/pad/software-os-src/opensolaris/common/sys/sata/adapters/ahci/ahcireg.h:218:0 #define AHCI_TFD_STS_ERR (0x1 << 0) #define AHCI_TFD_ERR_SHIFT 8 #define AHCI_SERROR_CLEAR_ALL 0xffffffff !!/* per port registers offset */ #define AHCI_PORT_OFFSET(ahci_ctlp, port) \ (ahci_ctlp->ahcictl_ahci_addr + (0x100 + (port * 0x80))) /* Command List Base Address */ #define AHCI_PORT_PxCLB(ahci_ctlp, port) \ (AHCI_PORT_OFFSET(ahci_ctlp, port) + 0x00) *** @DataFlow ****** place:assign ******** @DataFlow /home/yyzhou/pad/software-os-src/linux/drivers/infiniband/hw/ipath/ipath_file_ops.c:1518:1 pd->subport_uregbase = vmalloc(PAGE_SIZE * num_subports); if (!pd->subport_uregbase) { ret = -ENOMEM; goto bail; } !! /* Note: pd->port_rcvhdrq_size isn't initialized yet. */ size = ALIGN(dd->ipath_rcvhdrcnt * dd->ipath_rcvhdrentsize * sizeof(u32), PAGE_SIZE) * num_subports; pd->subport_rcvhdr_base = vmalloc(size); if (!pd->subport_rcvhdr_base) { ret = -ENOMEM; ****** place:assignfield ******** @DataFlow /home/yyzhou/pad/software-os-src/linux/fs/reiserfs/fix_node.c:148:34 /* this is not being changed */ continue; if (vn->vn_mode == M_PASTE || vn->vn_mode == M_CUT) { vn->vn_vi[new_num].vi_item_len += tb->insert_size[0]; !! vi->vi_new_data = vn->vn_data; // pointer to data which is going to be pasted } } /* virtual inserted item is not defined yet */ if (vn->vn_mode == M_INSERT) { ****** place:funcall ******** @DataFlow /home/yyzhou/pad/software-os-src/opensolaris/common/io/lofi.c:1288:3 */ if (vp->v_type == VREG) { if (VOP_REALVP(vp, &lsp->ls_vp, NULL) != 0) { lsp->ls_vp = vp; } else { !! /* * Even though vp was obtained via vn_open(), we * can't call vn_close() on it, since lofs will * pass the VOP_CLOSE() on down to the realvp * (which we are about to use). Hence we merely * drop the reference to the lofs vnode and hold * the realvp so things behave as if we've * opened the realvp without any interaction * with lofs. */ VN_HOLD(lsp->ls_vp); VN_RELE(vp); } } else { lsp->ls_vp = vp; ****** place:function ******** @DataFlow /home/yyzhou/pad/software-os-src/freebsd/netgraph/ng_ppp.c:2437:0 return (NULL); bcopy(buf, mtod(m, uint8_t *), len); return (m); } !!/* * Update private information that is derived from other private information */ static void ng_ppp_update(node_p node, int newConf) { const priv_p priv = NG_NODE_PRIVATE(node); int i; ****** place:function_misc ******** @DataFlow /home/yyzhou/pad/software-os-src/freebsd/netatm/uni/uniarp.c:1050:4 if (buf_len < sizeof(aar)) { err = ENOSPC; break; } !! /* * Fill in info to be returned */ SATOSIN(&aar.aap_arp_addr)->sin_family = AF_INET; SATOSIN(&aar.aap_arp_addr)->sin_addr.s_addr = uap->ua_dstip.s_addr; strlcpy(aar.aap_intf, ANIF2IFP(nip)->if_xname, ****** place:if ******** @DataFlow /home/yyzhou/pad/software-os-src/opensolaris/common/inet/tcp/tcp.c:2095:1 IPV6_RECVPKTINFO, (char *)&on, sizeof (on)); if (mp1 != NULL) linkb(opt_mp, mp1); } !! /* Re-use mp1 to hold a copy of mp, in case reallocb fails */ if ((mp1 = copymsg(mp)) == NULL) { CONN_DEC_REF(acceptor->tcp_connp); CONN_DEC_REF(eager->tcp_connp); freemsg(opt_mp); tcp_err_ack(listener, mp, TSYSERR, ENOMEM); ******** @DataFlow /home/yyzhou/pad/software-os-src/opensolaris/common/io/ib/mgt/ibmf/ibmf_saa_impl.c:1884:1 /* copy local addressing information to message */ bcopy(&saa_portp->saa_pt_ibmf_addr_info, &ibmf_msg->im_local_addr, sizeof (ibmf_addr_info_t)); !! /* copy global addressing information to message if in use */ if (saa_portp->saa_pt_ibmf_msg_flags & IBMF_MSG_FLAGS_GLOBAL_ADDRESS) { ibmf_msg->im_msg_flags = IBMF_MSG_FLAGS_GLOBAL_ADDRESS; bcopy(&saa_portp->saa_pt_ibmf_global_addr, ****** place:include ******** @DataFlow /home/yyzhou/pad/software-os-src/freebsd/kern/tty_pts.c:45:0 */ #include <sys/cdefs.h> __FBSDID("$FreeBSD: src/sys/kern/tty_pts.c,v 1.16 2007/07/05 05:54:47 peter Exp $"); !!/* * Pseudo-teletype Driver * (Actually two drivers, requiring two entries in 'cdevsw') */ #include "opt_compat.h" #include "opt_tty.h" #include <sys/param.h> #include <sys/systm.h> #include <sys/lock.h> ****** place:macro_variable ******** @DataFlow /home/yyzhou/pad/software-os-src/freebsd/dev/ep/if_epreg.h:413:41 #define DISABLE_UTP 0x0 /* * Misc defines for various things. */ !!#define ACTIVATE_ADAPTER_TO_CONFIG 0xff /* to the id_port */ #define MFG_ID 0x6d50 /* in EEPROM and W0 * ADDR_CONFIG */ #define PROD_ID 0x9150 #define AUI 0x1 ******** @DataFlow /home/yyzhou/pad/software-os-src/linux/drivers/net/s2io.c:389:0 } /* A flag indicating whether 'RX_PA_CFG_STRIP_VLAN_TAG' bit is set or not */ static int vlan_strip_flag; !!/* * Constants to be programmed into the Xena's registers, to configure * the XAUI. */ #define END_SIGN 0x0 static const u64 herc_act_dtx_cfg[] = { /* Set address */ 0x8000051536750000ULL, 0x80000515367500E0ULL, ******** @DataFlow @DefineTypeGrouping /home/yyzhou/pad/software-os-src/opensolaris/common/sys/crypto/spi.h:724:0 */ #define CRYPTO_HASH_NO_UPDATE 0x00000002 #define CRYPTO_PIFLAGS_RESERVED2 0x40000000 #define CRYPTO_PIFLAGS_RESERVED1 0x80000000 !!/* * Provider status passed by a provider to crypto_provider_notification(9F) * and returned by the provider_stauts(9E) entry point. */ #define CRYPTO_PROVIDER_READY 0 #define CRYPTO_PROVIDER_BUSY 1 #define CRYPTO_PROVIDER_FAILED 2 /* ******** @DataFlow /home/yyzhou/pad/software-os-src/opensolaris/sun4u/starfire/sys/idn.h:485:21 #define IDNDESC "Inter-Domain Network" #endif /* DEBUG */ #define IDNIDNUM 8264 #define IDNNAME "idn" !!#define IDNMINPSZ 0 /* set at idnopen() */ #define IDNMAXPSZ 0 /* set at idnopen() */ #endif /* _KERNEL */ /* ****** place:struct_misc ******** @DataFlow @Crossref /home/yyzhou/pad/software-os-src/linux/lib/zlib_deflate/defutil.h:166:16 uInt good_match; /* Use a faster search when the previous match is longer than this */ int nice_match; /* Stop searching when current match exceeds this */ !! /* used by trees.c: */ /* Didn't use ct_data typedef below to suppress compiler warning */ struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */ struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */ struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */ ****** place:unknown ******** @DataFlow @ContextAdvice @BitsetGrouping @CondRelated @LotsOfInfo @Sexy /home/yyzhou/pad/software-os-src/opensolaris/sun4u/starcat/sys/mboxsc.h:43:0 extern "C" { #endif #include <sys/types.h> !!/* * Mailbox message types, for use in mboxsc_putmsg() and mboxsc_getmsg() calls. * NOTE: Clients should not use the MBOXSC_NUM_MSG_TYPES value, which * is used internally to simplify future code maintenance. */ #define MBOXSC_MSG_REQUEST 0x01 #define MBOXSC_MSG_REPLY 0x02 #define MBOXSC_MSG_EVENT 0x04 #define MBOXSC_NUM_MSG_TYPES 3 ****** place:variable ******** @DataFlow /home/yyzhou/pad/software-os-src/freebsd/netinet6/nd6.c:1615:39 break; } case SIOCGNBRINFO_IN6: { struct llinfo_nd6 *ln; !! struct in6_addr nb_addr = nbi->addr; /* make local for safety */ if ((error = in6_setscope(&nb_addr, ifp, NULL)) != 0) return (error); s = splnet(); ******** @DataFlow /home/yyzhou/pad/software-os-src/linux/arch/x86/mach-visws/mpparse.c:14:0 #include "mach_apic.h" /* Have we found an MP table */ int smp_found_config; !!/* * Various Linux-internal data structures created from the * MP-table. */ int apic_version [MAX_APICS]; int pic_mode; unsigned long mp_lapic_addr; ******** @DataFlow /home/yyzhou/pad/software-os-src/opensolaris/common/os/strsubr.c:218:0 * run_queues is no longer used, but is kept in case some 3-d party * module/driver decides to use it. */ int run_queues = 0; !!/* * sq_max_size is the depth of the syncq (in number of messages) before * qfill_syncq() starts QFULL'ing destination queues. As its primary * consumer - IP is no longer D_MTPERMOD, but there may be other * modules/drivers depend on this syncq flow control, we prefer to * choose a large number as the default value. For potential * performance gain, this value is tunable in /etc/system. */ int sq_max_size = 10000; /* * the number of ciputctrl structures per syncq and stream we create when * needed. **** @Unused ****** place:field ******** @Unused /home/yyzhou/pad/software-os-src/freebsd/kern/vfs_aio.c:193:19 off_t aio_offset; /* File offset for I/O */ volatile void *aio_buf; /* I/O buffer in process space */ size_t aio_nbytes; /* Number of bytes for I/O */ struct osigevent aio_sigevent; /* Signal to deliver */ int aio_lio_opcode; /* LIO opcode */ !! int aio_reqprio; /* Request priority -- ignored */ struct __aiocb_private _aiocb_private; } oaiocb_t; /* * Below is a key of locks used to protect each member of struct aiocblist ******** @Unused /home/yyzhou/pad/software-os-src/freebsd/sys/gmon.h:48:15 u_long hpc; /* max pc address of sampled buffer */ int ncnt; /* size of sample buffer (plus this header) */ int version; /* version number */ int profrate; /* profiling clock rate */ int histcounter_type; /* size (in bits) and sign of HISTCOUNTER */ !! int spare[2]; /* reserved */ }; #define GMONVERSION 0x00051879 /* * Type of histogram counters used in the kernel. ******** @Unused /home/yyzhou/pad/software-os-src/opensolaris/common/sys/procfs.h:350:17 dev_t pr_dev; /* st_dev from stat64() of mapped object, or PRNODEV */ uint64_t pr_ino; /* st_ino from stat64() of mapped object, if any */ size_t pr_rss; /* pages of resident memory */ size_t pr_anon; /* pages of resident anonymous memory */ size_t pr_locked; /* pages of locked memory */ !! size_t pr_pad; /* currently unused */ uint64_t pr_hatpagesize; /* pagesize of the hat mapping */ #ifdef _ILP32 ulong_t pr_filler[6]; /* filler for future expansion */ #else ulong_t pr_filler[7]; /* filler for future expansion */ ****** place:macro_variable ******** @Unused /home/yyzhou/pad/software-os-src/linux/include/asm-alpha/unistd.h:34:29 #define __NR_exec_with_loader 25 /* not implemented */ #define __NR_ptrace 26 #define __NR_osf_nrecvmsg 27 /* not implemented */ #define __NR_osf_nsendmsg 28 /* not implemented */ #define __NR_osf_nrecvfrom 29 /* not implemented */ !!#define __NR_osf_naccept 30 /* not implemented */ #define __NR_osf_ngetpeername 31 /* not implemented */ #define __NR_osf_ngetsockname 32 /* not implemented */ #define __NR_access 33 #define __NR_osf_chflags 34 /* not implemented */ #define __NR_osf_fchflags 35 /* not implemented */ ******** @Unused /home/yyzhou/pad/software-os-src/opensolaris/sun/sys/eri_mac.h:1169:34 #define PCS_BMCR_PWRDN (1 << 11) /* Power down, always 0 */ #define PCS_BMCR_ISOLATE (1 << 10) /* Isolate PHY from MII, always 0 */ #define PCS_BMCR_RAN (1 << 9) /* Set to Restart Auto Negotiation */ #define PCS_BMCR_FDX (1 << 8) /* Full Duplex, always 0 */ #define PCS_BMCR_COLTST (1 << 7) /* Collision Test */ !!#define PCS_BMCR_RES1 (0x7f << 0) /* 0-6 Reserved */ #define PCS_AUTONEG_DISABLE 0 /* * ------------------------------------------------------------------------ ****** place:unknown ******** @Unused /home/yyzhou/pad/software-os-src/freebsd/netgraph/bluetooth/include/ng_hci.h:335:5 /* BC flag values */ #define NG_HCI_POINT2POINT 0x0 /* only Host controller to Host */ #define NG_HCI_BROADCAST_ACTIVE 0x1 /* both directions */ #define NG_HCI_BROADCAST_PICONET 0x2 /* both directions */ !! /* 11 - reserved for future use */ /* HCI command packet header */ #define NG_HCI_CMD_PKT 0x01 #define NG_HCI_CMD_PKT_SIZE 0xff /* without header */ typedef struct { ***** @ARGSUSED ****** place:function ******** @ARGSUSED /home/yyzhou/pad/software-os-src/freebsd/contrib/opensolaris/uts/common/fs/zfs/vdev_missing.c:73:0 { zio->io_error = ENOTSUP; zio_next_stage_async(zio); } !!/* ARGSUSED */ static void vdev_missing_io_done(zio_t *zio) { zio_next_stage(zio); } ******** @ARGSUSED /home/yyzhou/pad/software-os-src/opensolaris/common/fs/smbsrv/smb_init.c:367:0 } return (0); } !!/* ARGSUSED */ static int smb_drv_close(dev_t dev, int flag, int otyp, cred_t *credp) { mutex_enter(&smb_drv_opencount_lock); if (!smb_drv_busy()) { ******** @ARGSUSED /home/yyzhou/pad/software-os-src/opensolaris/common/io/1394/t1394.c:1124:0 * DDI_FAILURE Target failed to free the memory block * * Description: t1394_free_addr() attempts to free up memory that has been * allocated by the target using t1394_alloc_addr(). */ !!/* ARGSUSED */ int t1394_free_addr(t1394_handle_t t1394_hdl, t1394_addr_handle_t *addr_hdl, uint_t flags) { s1394_addr_space_blk_t *curr_blk; ******** @ARGSUSED /home/yyzhou/pad/software-os-src/opensolaris/common/io/random.c:196:0 error = DDI_FAILURE; } return (error); } !!/*ARGSUSED3*/ static int rnd_open(dev_t *devp, int flag, int otyp, cred_t *credp) { switch (getminor(*devp)) { case DEVRANDOM: ******** @ARGSUSED /home/yyzhou/pad/software-os-src/opensolaris/common/io/scsi/targets/ses.c:700:0 mutex_exit(SES_MUTEX); return (0); } !!/*ARGSUSED3*/ static int ses_ioctl(dev_t dev, int cmd, intptr_t arg, int flg, cred_t *cred_p, int *rvalp) { ses_softc_t *ssc; ses_object k, *up; ******** @ARGSUSED /home/yyzhou/pad/software-os-src/opensolaris/common/os/streamio.c:2705:0 * makes sense. This can be specified by downstream modules as part of * a M_SETOPTS message. Write will not supply the write offset if it * cannot supply any data in a buffer. In other words, write will never * send down an empty packet due to a write offset. */ !!/* ARGSUSED2 */ int strwrite(struct vnode *vp, struct uio *uiop, cred_t *crp) { return (strwrite_common(vp, uiop, crp, 0)); } ******** @ARGSUSED /home/yyzhou/pad/software-os-src/opensolaris/intel/amd64/krtld/kobj_isa.c:82:0 {} /* * Calculate memory image required for relocable object. */ !!/* ARGSUSED3 */ int get_progbits_size(struct module *mp, struct proginfo *tp, struct proginfo *dp, struct proginfo *sdp) { struct proginfo *pp; ****** place:unknown ******** @ARGSUSED @Trigger @CondRelated @OsInterrupt /home/yyzhou/pad/software-os-src/opensolaris/i86pc/io/pcplusmp/apic.c:1765:0 } ddi_periodic_t apic_periodic_id; !!/* * If this module needs a periodic handler for the interrupt distribution, it * can be added here. The argument to the periodic handler is not currently * used, but is reserved for future. */ static void apic_post_cyclic_setup(void *arg) { _NOTE(ARGUNUSED(arg)) /* cpu_lock is held */ **** @DataFlowField ****** place:field ******** @DataFlowField /home/yyzhou/pad/software-os-src/opensolaris/sun/io/ms.c:116:30 int msd_iocerror; /* error return from "ioctl" */ char msd_oldbutt; /* button state at last sample */ short msd_state; /* state counter for input routine */ short msd_jitter; timeout_id_t msd_timeout_id; /* id returned by timeout() */ !! bufcall_id_t msd_reioctl_id; /* id returned by bufcall() */ bufcall_id_t msd_resched_id; /* id returned by bufcall() */ int msd_baud_rate; /* mouse baud rate */ int msd_rcnt_baud_chng; /* baud changed recently */ int msd_data_pkt_cnt; /* no of packets since last baud change */ int msd_qenable_more; /* enable msrserv if baud changed recently */ ****** place:funcall ******** @DataFlowField /home/yyzhou/pad/software-os-src/opensolaris/common/inet/tcp/tcp.c:7949:35 DONTCARE(tcp->tcp_tcph); DONTCARE(tcp->tcp_tcp_hdr_len); /* Init in tcp_init_values */ tcp->tcp_valid_bits = 0; DONTCARE(tcp->tcp_xmit_hiwater); /* Init in tcp_init_values */ !! DONTCARE(tcp->tcp_timer_backoff); /* Init in tcp_init_values */ DONTCARE(tcp->tcp_last_recv_time); /* Init in tcp_init_values */ tcp->tcp_last_rcv_lbolt = 0; tcp->tcp_init_cwnd = 0; **** @DataDataCond ****** place:field ******** @DataDataCond /home/yyzhou/pad/software-os-src/freebsd/netgraph/ng_pptpgre.c:150:21 int32_t rtt; /* round trip time estimate */ int32_t dev; /* deviation estimate */ u_int16_t xmitWin; /* size of xmit window */ struct callout sackTimer; /* send ack timer */ struct callout rackTimer; /* recv ack timer */ !! u_int32_t winAck; /* seq when xmitWin will grow */ pptptime_t timeSent[PPTP_XMIT_WIN]; #ifdef DEBUG_RAT pptptime_t timerStart; /* when rackTimer started */ pptptime_t timerLength; /* rackTimer duration */ #endif ******** @DataDataCond @DefaultValue /home/yyzhou/pad/software-os-src/freebsd/netinet/sctp_structs.h:939:1 uint16_t free_chunk_cnt; uint8_t stream_locked; uint8_t authenticated; /* packet authenticated ok */ !! /* * This flag indicates that a SACK need to be sent. Initially this * is 1 to send the first sACK immediately. */ uint8_t send_sack; /* max burst after fast retransmit completes */ uint8_t max_burst; ******** @DataDataCond @LotsOfInfo /home/yyzhou/pad/software-os-src/linux/fs/afs/internal.h:109:26 unsigned request_size; /* size of request data */ unsigned reply_max; /* maximum size of reply */ unsigned reply_size; /* current size of reply */ unsigned first_offset; /* offset into mapping[first] */ unsigned last_to; /* amount of mapping[last] */ !! unsigned short offset; /* offset into received data store */ unsigned char unmarshall; /* unmarshalling phase */ bool incoming; /* T if incoming call */ bool send_pages; /* T if data from mapping should be sent */ u16 service_id; /* RxRPC service ID to call */ __be16 port; /* target UDP port */ ******** @DataDataCond /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ipf/netinet/ip_nat.h:139:18 int nat_dir; int nat_ref; /* reference count */ int nat_hv[2]; char nat_ifnames[2][LIFNAMSIZ]; int nat_rev; /* 0 = forward, 1 = reverse */ !! int nat_redir; /* copy of in_redir */ } nat_t; #define nat_inip nat_inip6.in4 #define nat_outip nat_outip6.in4 #define nat_oip nat_oip6.in4 ******** @DataDataCond /home/yyzhou/pad/software-os-src/opensolaris/common/sys/ib/ibtl/impl/ibtl.h:284:37 kmutex_t cq_mutex; /* Mutex. */ void *cq_clnt_private; /* Client's Private. */ struct ibtl_cq_s *cq_link; /* link for queuing cq to */ /* to be handled in a thread */ struct ibtl_cq_s *cq_async_link; /* list link for asyncs */ !! ibtl_cq_impl_flags_t cq_impl_flags; /* dynamic bits if cq */ /* handler runs in a thread */ int cq_in_thread; /* mark if cq handler is to */ /* be called in a thread */ ibt_async_code_t cq_async_codes; ibtl_async_flags_t cq_async_flags; /* see *_async_flags above */ ****** place:macro_variable ******** @DataDataCond /home/yyzhou/pad/software-os-src/linux/sound/pci/au88x0/au8810.h:22:36 /* ADBDMA */ #define VORTEX_ADBDMA_STAT 0x27e00 /* read only, subbuffer, DMA pos */ #define POS_MASK 0x00000fff #define POS_SHIFT 0x0 !!#define ADB_SUBBUF_MASK 0x00003000 /* ADB only. */ #define ADB_SUBBUF_SHIFT 0xc /* ADB only. */ #define VORTEX_ADBDMA_CTRL 0x27180 /* write only; format, flags, DMA pos */ #define OFFSET_MASK 0x00000fff #define OFFSET_SHIFT 0x0 #define IE_MASK 0x00001000 /* interrupt enable. */ ******** @DataDataCond /home/yyzhou/pad/software-os-src/opensolaris/common/sys/buf.h:173:25 #define B_PHYS 0x0020 /* Physical IO potentially using UNIBUS map */ #define B_READ 0x0040 /* read when I/O occurs */ #define B_WRITE 0x0100 /* non-read pseudo-flag */ /* Not part of the DDI */ !!#define B_WANTED 0x0080 /* issue wakeup when BUSY goes off */ #define B_AGE 0x000200 /* delayed write for correct aging */ #define B_ASYNC 0x000400 /* don't wait for I/O completion */ #define B_DELWRI 0x000800 /* delayed write-wait til buf needed */ #define B_STALE 0x001000 /* on av_* list; invalid contents */ #define B_DONTNEED 0x002000 /* after write, need not be cached */ ****** place:unknown ******** @DataDataCond /home/yyzhou/pad/software-os-src/freebsd/dev/sound/pcm/channel.h:99:1 int trigger; /** * For interrupt manipulations. */ struct cv intr_cv; !! /** * Increment,decrement this around operations that temporarily yield * lock. */ unsigned int inprog; /** * Special channel operations should examine @c inprog after acquiring * lock. If zero, operations may continue. Else, thread should * wait on this cv for previous operation to finish. ******** @DataDataCond /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/xfs/xfs_dir2_data.c:185:17 { xfs_dir2_data_free_t *dfp; /* bestfree entry */ xfs_dir2_data_aoff_t off; /* offset value needed */ #if defined(DEBUG) && defined(__KERNEL__) int matched; /* matched the value */ !! int seenzero; /* saw a 0 bestfree entry */ #endif off = (xfs_dir2_data_aoff_t)((char *)dup - (char *)d); #if defined(DEBUG) && defined(__KERNEL__) /* ****** place:variable ******** @DataDataCond /home/yyzhou/pad/software-os-src/linux/drivers/serial/sn_console.c:108:0 }; static struct sn_cons_port sal_console_port; static int sn_process_input; !!/* Only used if USE_DYNAMIC_MINOR is set to 1 */ static struct miscdevice misc; /* used with misc_register for dynamic */ extern void early_sn_setup(void); #undef DEBUG ******** @DataDataCond /home/yyzhou/pad/software-os-src/opensolaris/common/xen/io/xdf.c:1219:20 xdf_iostart(vdp); return (DDI_INTR_CLAIMED); } !!int xdf_fbrewrites; /* how many times was our flush block rewritten */ /* * Snarf new data if our flush block was re-written */ static void ******** @DataDataCond @CondRelated /home/yyzhou/pad/software-os-src/opensolaris/sun/io/zs_async.c:88:19 #define ZSA_GRACE_MIN_FLOW_CONTROL 5 #define ZSA_GRACE_MAX_FLOW_CONTROL 20 int zsasoftdtr = 0; /* if nonzero, softcarrier raises dtr at attach */ int zsb134_weird = 0; /* if set, old weird B134 behavior */ !!int g_zsticks = 0; /* if set, becomes the global zsticks value */ int g_nocluster = 0; /* if set, disables clustering of received data */ unsigned int zsa_rstandby = ZSA_MIN_RSTANDBY; unsigned int zsa_rdone = ZSA_RDONE_MIN; unsigned int zsa_grace_flow_control = ZSA_GRACE_MIN_FLOW_CONTROL; **** @DataEventCond ****** place:field ******** @DataEventCond /home/yyzhou/pad/software-os-src/freebsd/contrib/opensolaris/uts/common/fs/zfs/sys/vdev_impl.h:169:30 uint64_t vdev_isspare; /* was a hot spare */ vdev_queue_t vdev_queue; /* I/O deadline schedule queue */ vdev_cache_t vdev_cache; /* physical block cache */ uint64_t vdev_not_present; /* not present during import */ hrtime_t vdev_last_try; /* last reopen time */ !! boolean_t vdev_nowritecache; /* true if flushwritecache failed */ /* * For DTrace to work in userland (libzpool) context, these fields must * remain at the end of the structure. DTrace will use the kernel's * CTF definition for 'struct vdev', and since the size of a kmutex_t is ******** @DataEventCond /home/yyzhou/pad/software-os-src/linux/include/linux/wanrouter.h:335:17 * WAN Link Status Info (for ROUTER_STAT IOCTL). */ typedef struct wandev_stat { unsigned state; /* link state */ !! unsigned ndev; /* number of configured interfaces */ /* link/interface configuration */ unsigned connection; /* permanent/switched/on-demand */ unsigned media_type; /* Frame relay/PPP/X.25/SDLC, etc. */ unsigned mtu; /* max. transmit unit for this device */ ******** @DataEventCond /home/yyzhou/pad/software-os-src/opensolaris/common/net/pfpolicy.h:460:29 */ typedef struct spd_ruleset_ext { uint16_t spd_ruleset_len; /* 2 x 64 bits */ uint16_t spd_ruleset_type; /* SPD_EXT_RULESET */ !! uint32_t spd_ruleset_count; /* only valid in trailer */ uint64_t spd_ruleset_version; /* version number */ } spd_ruleset_ext_t; /* * Diagnostic codes. These supplement error messages. Be sure to ****** place:macro_variable ******** @DataEventCond @Sexy /home/yyzhou/pad/software-os-src/linux/include/asm-sparc64/asi.h:57:34 #define ASI_PCACHE_SNOOP_TAG 0x33 /* (III) PCache snoop tag RAM diag */ #define ASI_QUAD_LDD_PHYS 0x34 /* (III+) PADDR, qword load */ #define ASI_WCACHE_VALID_BITS 0x38 /* (III) WCache Valid Bits diag */ #define ASI_WCACHE_DATA 0x39 /* (III) WCache data RAM diag */ #define ASI_WCACHE_TAG 0x3a /* (III) WCache tag RAM diag */ !!#define ASI_WCACHE_SNOOP_TAG 0x3b /* (III) WCache snoop tag RAM diag */ #define ASI_QUAD_LDD_PHYS_L 0x3c /* (III+) PADDR, qw-load, l-endian */ #define ASI_SRAM_FAST_INIT 0x40 /* (III+) Fast SRAM init */ #define ASI_CORE_AVAILABLE 0x41 /* (CMT) LP Available */ #define ASI_CORE_ENABLE_STAT 0x41 /* (CMT) LP Enable Status */ #define ASI_CORE_ENABLE 0x41 /* (CMT) LP Enable RW */ ***** !no objs!@Threshold *** @ControlFlow ****** place:assign ******** @ControlFlow @OsMemoryPhysical @OsMemoryVirtual /home/yyzhou/pad/software-os-src/freebsd/sun4v/sun4v/machdep.c:448:1 if (((thread0.td_pcb->pcb_kstack + SPOFF) & 0x3f) != 0) { printf("unaligned stack pcb_kstack & 0x3f == 0x%lx\n", ((thread0.td_pcb->pcb_kstack + SPOFF) & 0x3f)); } !! /* * Update PCPU_REG to point to direct address * to support easy phys <-> virt translation in trap handler */ pc = (struct pcpu *)TLB_PHYS_TO_DIRECT(vtophys(pc)); BVPRINTF("initializing cpu regs\n"); cpu_setregs(pc); ******** @ControlFlow @CondRelated /home/yyzhou/pad/software-os-src/opensolaris/i86pc/vm/hat_i86.c:3063:1 ASSERT(eaddr <= _userlimit); ASSERT(IS_PAGEALIGNED(vaddr)); ASSERT(IS_PAGEALIGNED(eaddr)); XPV_DISALLOW_MIGRATE(); !! /* * First go through and remove any shared pagetables. * * Note that it's ok to delay the TLB shootdown till the entire range is * finished, because if hat_pageunload() were to unload a shared * pagetable page, its hat_tlb_inval() will do a global TLB invalidate. */ l = mmu.max_page_level; if (l == mmu.max_level) --l; for (; l >= 0; --l) { for (vaddr = (uintptr_t)addr; vaddr < eaddr; ****** place:assignop_plusminus ******** @ControlFlow /home/yyzhou/pad/software-os-src/freebsd/dev/usb/if_aue.c:899:1 if (r.aue_rxstat) { ifp->if_ierrors++; goto done; } !! /* No errors; receive the packet. */ total_len -= (4 + ETHER_CRC_LEN); ifp->if_ipackets++; m->m_pkthdr.rcvif = (void *)&sc->aue_qdat; m->m_pkthdr.len = m->m_len = total_len; ****** place:continue ******** @ControlFlow /home/yyzhou/pad/software-os-src/linux/fs/cifs/connect.c:386:4 if (smallbuf == NULL) { smallbuf = cifs_small_buf_get(); if (!smallbuf) { cERROR(1, ("No memory for SMB response")); msleep(1000); !! /* retry will check if exiting */ continue; } /* beginning of smb buffer is cleared in our buf_get */ } else /* if existing small buf clear beginning */ memset(smallbuf, 0, sizeof(struct smb_hdr)); ******** @ControlFlow /home/yyzhou/pad/software-os-src/opensolaris/common/os/driver_lyr.c:3411:13 if (lecp->lec_finalize == NULL) { LDI_EVDBG((CE_NOTE, "ldi_invoke_notify(): no finalize, " "skipping")); !! continue; /* not interested in finalize */ } /* * it is possible that in response to a notify event a * layered driver closed its LDI handle so it is ok ****** place:function ******** @ControlFlow /home/yyzhou/pad/software-os-src/opensolaris/common/os/devid_cache.c:289:0 } return (0); } !!/* * Pack the list of devid cache elements into a single nvlist * Used when writing the nvlist file. */ static int devid_cache_pack_list(nvf_handle_t fd, nvlist_t **ret_nvl) { nvlist_t *nvl, *sub_nvl; nvp_devid_t *np; ****** place:if ******** @ControlFlow /home/yyzhou/pad/software-os-src/freebsd/dev/an/if_an.c:3685:1 } else break; } while (waittime >= 0); !! /* timeout for busy clear wait */ if (waittime <= 0) { printf("an%d: flash putchar busywait timeout! \n", sc->an_unit); return -1; ******** @ControlFlow /home/yyzhou/pad/software-os-src/freebsd/kern/subr_smp.c:174:1 if (!smp_started || cold || panicstr) return; if (!forward_signal_enabled) return; !! /* No need to IPI ourself. */ if (td == curthread) return; id = td->td_oncpu; if (id == NOCPU) ****** place:return ******** @ControlFlow /home/yyzhou/pad/software-os-src/freebsd/libkern/bcmp.c:106:2 */ if (!(len += sizeof(long))) return (0); len <<= 3; /* remaining length in bits */ !! /* * The following is similar to the `if' condition * inside the above while loop. The ?: is necessary * to avoid accessing the longword after the longword * containing the last byte to be compared. */ return ((((va >> shr | ((shl < len) ? *(culp)p2 << shl : 0)) ^ *(culp)p1) & ((1L << len) - 1)) != 0); } else { /* p1 and p2 have common alignment so no shifting needed */ while ((len -= sizeof(long)) >= 0) { ****** place:unknown ******** @ControlFlow /home/yyzhou/pad/software-os-src/freebsd/arm/arm/trap.c:282:1 if (__predict_true(tf->tf_spsr & F32_bit) == 0) enable_interrupts(F32_bit); } !! /* Invoke the appropriate handler, if necessary */ if (__predict_false(data_aborts[fsr & FAULT_TYPE_MASK].func != NULL)) { if ((data_aborts[fsr & FAULT_TYPE_MASK].func)(tf, fsr, far, td, &ksig)) { goto do_trapsignal; } ******** @ControlFlow @ModuleAndFunction @Crossref @LockEffect @OsInterruptCheckable /home/yyzhou/pad/software-os-src/linux/include/asm-cris/arch-v32/irq.h:73:0 "move $r10, $ccs\n\t" #else #define KGDB_FIXUP "" #endif !!/* * Make sure the causing IRQ is blocked, then call do_IRQ. After that, unblock * and jump to ret_from_intr which is found in entry.S. * * The reason for blocking the IRQ is to allow an sti() before the handler, * which will acknowledge the interrupt, is run. The actual blocking is made * by crisv32_do_IRQ. */ #define BUILD_IRQ(nr) \ void IRQ_NAME(nr); \ __asm__ ( \ ".text\n\t" \ "IRQ" #nr "_interrupt:\n\t" \ ******** @ControlFlow @LotsOfInfo /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip_if.h:475:0 extern int ip_sioctl_move(ipif_t *, sin_t *, queue_t *, mblk_t *, ip_ioctl_cmd_t *, void *); extern void conn_delete_ire(conn_t *, caddr_t); !!/* * Notes on reference tracing on ill, ipif, ire, nce data structures: * * The current model of references on an ipif or ill is purely based on threads * acquiring a reference by doing a lookup on the ill or ipif or by calling a * refhold function on the ill or ipif. In particular any data structure that * points to an ipif or ill does not explicitly contribute to a reference on the * ill or ipif. More details may be seen in the block comment above ipif_down(). * Thus in the quiescent state an ill or ipif has a refcnt of zero. Similarly * when a thread exits, there can't be any references on the ipif or ill due to * the exiting thread. * * As a debugging aid, the refhold and refrele functions call into tracing * functions that record the stack trace of the caller and the references * acquired or released by the calling thread, hashed by the structure address * in thread-specific-data (TSD). On thread exit, ip_thread_exit destroys the * hash, and the destructor for the hash entries (th_trace_free) verifies that * there are no outstanding references to the ipif or ill from the exiting * thread. * * In the case of ires and nces, the model is slightly different. Typically each * ire pointing to an nce contributes to the nce_refcnt. Similarly a conn_t * pointing to an ire also contributes to the ire_refcnt. Excluding the above * special cases, the tracing behavior is similar to the tracing on ipif / ill. * Traces are neither recorded nor verified in the exception cases, and the code * is careful to use the right refhold and refrele functions. On thread exit * ire_thread_exit, nce_thread_exit does the verification that are no * outstanding references on the ire / nce from the exiting thread. * * The reference verification is driven from the TSD destructor which calls * into IP's verification function ip_thread_exit. This debugging aid may be * helpful in tracing missing refrele's on a debug kernel. On a non-debug * kernel, these missing refrele's are noticeable only when an interface is * being unplumbed, and the unplumb hangs, long after the missing refrele. On a * debug kernel, the traces (th_trace_t) which contain the stack backtraces can * be examined on a crash dump to locate the missing refrele. */ #endif /* _KERNEL */ #ifdef __cplusplus } **** @FlowCallerCallee ****** place:function ******** @FlowCallerCallee @EffectOther /home/yyzhou/pad/software-os-src/opensolaris/sun4u/io/pci/simba.c:864:0 * Strip the node to properly convert it back to prototype form */ impl_rem_dev_props(dip); } !!/* * simba_save_config_regs * * This routine saves the state of the configuration registers of all * the child nodes of each PBM. * * used by: simba_detach() on suspends * * return value: none */ static void simba_save_config_regs(simba_devstate_t *simba_p) { int i; dev_info_t *dip; ******** @FlowCallerCallee /home/yyzhou/pad/software-os-src/opensolaris/sun4v/os/mach_mp_startup.c:45:0 * Useful for disabling MP bring-up for an MP capable kernel * (a kernel that was built with MP defined) */ int use_mp = 1; /* set to come up mp */ !!/* * Init CPU info - get CPU type info for processor_info system call. */ void init_cpu_info(struct cpu *cp) { processor_info_t *pi = &cp->cpu_type_info; int cpuid = cp->cpu_id; ****** place:if ******** @FlowCallerCallee /home/yyzhou/pad/software-os-src/linux/drivers/usb/storage/freecom.c:210:1 /* Send it out. */ result = usb_stor_bulk_transfer_buf (us, opipe, fcb, FCM_PACKET_LENGTH, NULL); !! /* The Freecom device will only fail if there is something wrong in * USB land. It returns the status in its own registers, which * come back in the bulk pipe. */ if (result != USB_STOR_XFER_GOOD) { US_DEBUGP ("freecom transport error\n"); return USB_STOR_TRANSPORT_ERROR; } ****** place:prototype ******** @FlowCallerCallee /home/yyzhou/pad/software-os-src/linux/drivers/pci/hotplug/ibmphp.h:753:47 struct list_head ebda_hpc_list; }; /* Functions */ !!extern int ibmphp_init_devno (struct slot **); /* This function is called from EBDA, so we need it not be static */ extern int ibmphp_do_disable_slot (struct slot *slot_cur); extern int ibmphp_update_slot_info (struct slot *); /* This function is called from HPC, so we need it to not be be static */ extern int ibmphp_configure_card (struct pci_func *, u8); extern int ibmphp_unconfigure_card (struct slot **, int); extern struct hotplug_slot_ops ibmphp_hotplug_slot_ops; **** @FlowBeforeAfter ****** place:funcall ******** @FlowBeforeAfter /home/yyzhou/pad/software-os-src/linux/drivers/isdn/hardware/eicon/message.c:4398:30 dbug(1,dprintf("_Connect_R=0x%x/0x%x",req,rc)); if ((global_req == ASSIGN) && (rc != ASSIGN_OK)) { dbug(1,dprintf("No more IDs")); sendf(appl,_CONNECT_R|CONFIRM,Id&0xffL,Number,"w",_OUT_OF_PLCI); !! plci_remove(plci); /* after codec init, internal codec commands pending */ } break; case PERM_COD_HOOK: /* finished with Hook_Ind */ return; ******** @FlowBeforeAfter /home/yyzhou/pad/software-os-src/linux/drivers/scsi/lpfc/lpfc_init.c:2225:1 pci_disable_msi(phba->pcidev); pci_set_drvdata(pdev, NULL); scsi_host_put(shost); !! /* * Call scsi_free before mem_free since scsi bufs are released to their * corresponding pools here. */ lpfc_scsi_free(phba); lpfc_mem_free(phba); dma_free_coherent(&pdev->dev, lpfc_sli_hbq_size(), phba->hbqslimp.virt, phba->hbqslimp.phys); ****** place:function ******** @FlowBeforeAfter @OsMemory @OsMemoryVirtual /home/yyzhou/pad/software-os-src/opensolaris/sun4u/starfire/cvc/cvc.c:1085:0 mutex_enter(&cvc_bbsram_input_mutex); mutex_enter(&cvc_buf_mutex); } !!/* * cvc_bbsram_start() * Allow accesses to BBSRAM, used by cvc_assign_iocpu() after * BBSRAM has been mapped to a virtual address. */ static void cvc_bbsram_start(void) { stop_bbsram = 0; mutex_exit(&cvc_buf_mutex); **** @MainEntry ****** place:function ******** @MainEntry /home/yyzhou/pad/software-os-src/linux/net/ipv4/ip_input.c:367:0 drop: kfree_skb(skb); return NET_RX_DROP; } !!/* * Main IP Receive routine. */ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, struct net_device *orig_dev) { struct iphdr *iph; u32 len; **** @Unreachable ****** place:function_misc ******** @Unreachable /home/yyzhou/pad/software-os-src/opensolaris/common/fs/smbsrv/smb_mbuf_marshaling.c:1622:2 va_start(ap, fmt); if (smb_mbc_encode(&sr->reply, fmt, ap) != 0) { va_end(ap); smbsr_encode_error(sr); !! /* NOTREACHED */ } va_end(ap); /*LINTED E_ASSIGN_NARROW_CONV*/ sr->smb_wct = wct; /*LINTED E_ASSIGN_NARROW_CONV*/ **** !no objs!@ProblematicControl ***** @Fallthrough ****** place:function_misc ******** @Fallthrough @MaybeComment /home/yyzhou/pad/software-os-src/linux/drivers/isdn/gigaset/bas-gigaset.c:1168:3 status = done->status; switch (status) { case -EXDEV: /* partial completion */ gig_dbg(DEBUG_ISO, "%s: URB partially completed", __func__); !! /* fall through - what's the difference anyway? */ case 0: /* normal completion */ /* inspect individual frames * assumptions (for lack of documentation): * - actual_length bytes of first frame in error are * successfully sent ******** @Fallthrough /home/yyzhou/pad/software-os-src/opensolaris/sun4u/serengeti/io/sgsbbc_iosram.c:459:3 IOSRAM_PUT(tunnel, sram_src, buf, 32); else IOSRAM_PUT(tunnel, sram_src, buf, 64); break; } !! /* FALLTHRU */ default: IOSRAM_PUTB(tunnel, (uint8_t *)buf, (uint8_t *)sram_src, (size_t)size); break; } ****** place:unknown ******** @Fallthrough /home/yyzhou/pad/software-os-src/opensolaris/common/io/ppp/spppcomp/zlib.c:5370:3 } #endif /* !SLOW */ c->sub.code.need = c->lbits; c->sub.code.tree = c->ltree; c->mode = LEN; !! /* FALLTHRU */ case LEN: /* i: get length/literal/eob next */ j = c->sub.code.need; NEEDBITS(j); t = c->sub.code.tree + ((uInt)b & inflate_mask[j]); ***** @ContinueBreak ****** place:continue ******** @ContinueBreak /home/yyzhou/pad/software-os-src/freebsd/netinet/sctp_output.c:2904:3 if (dest_is_loop == 0 && SCTP_IFN_IS_IFT_LOOP(sctp_ifn)) { /* wrong base scope */ continue; } if ((sctp_ifn == looked_at) && looked_at) !! /* already looked at this guy */ continue; LIST_FOREACH(sctp_ifa, &sctp_ifn->ifalist, next_ifa) { if ((sctp_ifa->localifa_flags & SCTP_ADDR_DEFER_USE) && (non_asoc_addr_ok == 0)) **** !no objs!@AbsenceElse *** @CodeCorrelation ****** place:field ******** @CodeCorrelation /home/yyzhou/pad/software-os-src/freebsd/netgraph/ng_l2tp.h:165:25 { NULL } \ } /* Session statistics struct. */ struct ng_l2tp_session_stats { !! u_int64_t xmitPackets; /* number of packets xmit */ u_int64_t xmitOctets; /* number of octets xmit */ u_int64_t recvPackets; /* number of packets received */ u_int64_t recvOctets; /* number of octets received */ }; ******** @CodeCorrelation @Unit /home/yyzhou/pad/software-os-src/linux/fs/xfs/xfs_attr_leaf.h:101:19 } xfs_attr_leaf_entry_t; typedef struct xfs_attr_leaf_name_local { __be16 valuelen; /* number of bytes in value */ __u8 namelen; /* length of name bytes */ !! __u8 nameval[1]; /* name/value bytes */ } xfs_attr_leaf_name_local_t; typedef struct xfs_attr_leaf_name_remote { __be32 valueblk; /* block number of value bytes */ __be32 valuelen; /* number of bytes in value */ ******** @CodeCorrelation @AbuseInt @See /home/yyzhou/pad/software-os-src/opensolaris/common/sys/fx.h:115:20 /* same as user priority */ pri_t fx_uprilim; /* user priority limit */ char fx_nice; /* nice value for compatibility */ !! uchar_t fx_flags; /* flags defined below */ kthread_t *fx_tp; /* pointer to thread */ /* the following are used only when we have callbacks registered */ kt_did_t fx_ktid; struct fxproc *fx_cb_next; /* pointer to next fxproc that */ ****** place:struct ******** @CodeCorrelation /home/yyzhou/pad/software-os-src/opensolaris/sun4v/sys/mpo.h:93:0 pfn_t base_pfn; pfn_t end_pfn; mnodeset_t mnode_mask; }; !!/* Structure for memnode information for use by plat_pfn_to_mem_node */ struct mnode_info { pfn_t base_pfn; pfn_t end_pfn; }; **** @BufferOwnership ****** place:assign ******** @BufferOwnership /home/yyzhou/pad/software-os-src/freebsd/dev/hatm/if_hatm_ioctl.c:164:1 /* ok - go ahead */ sc->vccs[cid] = vcc; hatm_load_vc(sc, cid, 0); !! /* don't free below */ vcc = NULL; sc->open_vccs++; done: mtx_unlock(&sc->mtx); ****** place:funcall ******** @BufferOwnership /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip/ip_ndp.c:1065:3 NCE_REFRELE(nce); return (0); } mp_nce = ip_prepend_zoneid(mp, zoneid, ipst); if (mp_nce == NULL) { !! /* The caller will free mp */ mutex_exit(&nce->nce_lock); rw_exit(&ipst->ips_ill_g_lock); ndp_delete(nce); NCE_REFRELE(nce); return (ENOMEM); ******** @BufferOwnership /home/yyzhou/pad/software-os-src/opensolaris/i86pc/vm/hment.c:433:2 hm = hment_alloc(); x86_hm_enter(pp); continue; free_and_continue: !! /* * we allocated an hment already, free it and retry */ x86_hm_exit(pp); hment_free(hm); hm = NULL; x86_hm_enter(pp); } ****** place:function_misc ******** @BufferOwnership /home/yyzhou/pad/software-os-src/linux/drivers/acpi/executer/exresnte.c:223:2 case ACPI_TYPE_POWER: case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_EVENT: case ACPI_TYPE_REGION: !! /* Return an additional reference to the object */ obj_desc = source_desc; acpi_ut_add_reference(obj_desc); break; ****** place:unknown ******** @BufferOwnership /home/yyzhou/pad/software-os-src/opensolaris/intel/io/acpica/interpreter/executer/exresnte.c:337:12 switch (SourceDesc->Reference.Opcode) { case AML_LOAD_OP: /* This is a DdbHandle */ !! /* Return an additional reference to the object */ case AML_REF_OF_OP: ObjDesc = SourceDesc; AcpiUtAddReference (ObjDesc); **** @LockVarRelation ****** place:field ******** @LockVarRelation /home/yyzhou/pad/software-os-src/linux/include/linux/jbd.h:703:1 * Journal head: identifies the first unused block in the journal. * [j_state_lock] */ unsigned long j_head; !! /* * Journal tail: identifies the oldest still-used block in the journal. * [j_state_lock] */ unsigned long j_tail; /* * Journal free: how many free blocks are there in the journal? * [j_state_lock] ******** @LockVarRelation /home/yyzhou/pad/software-os-src/opensolaris/common/sys/usb/scsa2usb/scsa2usb.h:494:19 * callbacks. It is used for panic callbacks as well. */ typedef struct scsa2usb_cpr { callb_cpr_t cpr; /* for cpr related info */ struct scsa2usb_state *statep; /* for scsa2usb state info */ !! kmutex_t lockp; /* mutex used by cpr_info_t */ } scsa2usb_cpr_t; _NOTE(DATA_READABLE_WITHOUT_LOCK(scsa2usb_cpr_t::cpr)) _NOTE(DATA_READABLE_WITHOUT_LOCK(scsa2usb_cpr_t::statep)) ****** place:funcall ******** @LockVarRelation @BadComment /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip/ip_if.c:14507:3 cur_ipsq, ipst); if (newipsq == NULL) { /* Memory allocation failure */ return (SPLIT_FAILED); } else { !! /* ipsq_refs protected by ill_g_lock (writer) */ IPSQ_DEC_REF(cur_ipsq, ipst); phyint->phyint_ipsq = newipsq; phyint->phyint_ipsq_next = newipsq->ipsq_phyint_list; newipsq->ipsq_phyint_list = phyint; IPSQ_INC_REF(newipsq, ipst); ****** place:function ******** @LockVarRelation @Error @InOut /home/yyzhou/pad/software-os-src/linux/fs/gfs2/locking/nolock/main.c:130:0 static void nolock_cancel(void *lock) { } !!/** * nolock_hold_lvb - hold on to a lock value block * @lock: the lock the LVB is associated with * @lvbp: return the lm_lvb_t here * * Returns: 0 on success, -EXXX on failure */ static int nolock_hold_lvb(void *lock, char **lvbp) { struct nolock_lockspace *nl = lock; int error = 0; ****** place:struct ******** @LockVarRelation /home/yyzhou/pad/software-os-src/linux/net/tipc/ref.h:40:0 */ #ifndef _TIPC_REF_H #define _TIPC_REF_H !!/** * struct reference - TIPC object reference entry * @object: pointer to object associated with reference entry * @lock: spinlock controlling access to object * @data: reference value associated with object (or link to next unused entry) */ struct reference { void *object; spinlock_t lock; union { ****** place:struct_misc ******** @LockVarRelation @DataAccess @Const /home/yyzhou/pad/software-os-src/opensolaris/common/fs/zfs/sys/dbuf.h:140:1 } dl; } dt; } dbuf_dirty_record_t; typedef struct dmu_buf_impl { !! /* * The following members are immutable, with the exception of * db.db_data, which is protected by db_mtx. */ /* the publicly visible structure */ dmu_buf_t db; /* the objset we belong to */ ****** place:unknown ******** @LockVarRelation @LotsOfInfo @Sexy /home/yyzhou/pad/software-os-src/freebsd/sys/socketvar.h:102:18 */ struct sockbuf { struct selinfo sb_sel; /* process selecting read/write */ struct mtx sb_mtx; /* sockbuf lock */ struct sx sb_sx; /* prevent I/O interlacing */ !! short sb_state; /* (c/d) socket state on sockbuf */ #define sb_startzero sb_mb struct mbuf *sb_mb; /* (c/d) the mbuf chain */ struct mbuf *sb_mbtail; /* (c/d) the last mbuf in the chain */ struct mbuf *sb_lastrecord; /* (c/d) first mbuf of last * record in socket buffer */ ******** @LockVarRelation /home/yyzhou/pad/software-os-src/freebsd/vm/vm_reserv.c:137:0 * reservation belongs to a particular object. Moreover, every active * reservation has an entry in the containing object's list of reservations. */ static vm_reserv_t vm_reserv_array; !!/* * The partially-populated reservation queue * * This queue enables the fast recovery of an unused cached or free small page * from a partially-populated reservation. The head of this queue is either * the least-recently-populated or most-recently-depopulated reservation. * * Access to this queue is synchronized by the free page queue lock. */ static TAILQ_HEAD(, vm_reserv) vm_rvq_partpop = TAILQ_HEAD_INITIALIZER(vm_rvq_partpop); static SYSCTL_NODE(_vm, OID_AUTO, reserv, CTLFLAG_RD, 0, "Reservation Info"); **** !no objs!@Protocol ***** !no objs!@FuncFunc ***** !no objs!@Balancing ***** !no objs!@ProtocolOther **** !no objs!@PointerList **** !no objs!@FieldRelated **** @DependentTypeStructure ****** place:field ******** @DependentTypeStructure @CondRelated /home/yyzhou/pad/software-os-src/freebsd/dev/lmc/if_lmc.h:767:26 struct iohdr iohdr; /* common ioctl header */ u_int32_t card_type; /* PCI device number */ u_int16_t ieee[3]; /* IEEE MAC-addr from Tulip SROM */ u_int16_t oper_status; /* actual state: up, down, test */ u_int32_t tx_speed; /* measured TX bits/sec */ !! u_int32_t cable_type; /* SSI only: cable type */ u_int32_t line_pkg; /* actual line pkg in use */ u_int32_t line_prot; /* actual line proto in use */ u_int32_t ticks; /* incremented by watchdog @ 1 Hz */ struct event_cntrs cntrs; /* event counters */ union **** !no objs!@Coupling ***** @DataClump ****** place:assignfield ******** @DataClump @OsInterrupt /home/yyzhou/pad/software-os-src/freebsd/dev/sound/pci/au88x0.c:615:1 goto failed; } aui->aui_spct = rman_get_bustag(aui->aui_reg); aui->aui_spch = rman_get_bushandle(aui->aui_reg); !! /* IRQ mapping */ aui->aui_irqid = 0; aui->aui_irqtype = SYS_RES_IRQ; aui->aui_irq = bus_alloc_resource_any(dev, aui->aui_irqtype, &aui->aui_irqid, RF_ACTIVE | RF_SHAREABLE); if (aui->aui_irq == 0) { ****** place:field ******** @DataClump /home/yyzhou/pad/software-os-src/freebsd/net80211/ieee80211_ioctl.h:134:26 uint32_t is_rx_bad_auth; /* rx bad auth request */ uint32_t is_rx_unauth; /* rx on unauthorized port */ uint32_t is_rx_badkeyid; /* rx w/ incorrect keyid */ uint32_t is_rx_ccmpreplay; /* rx seq# violation (CCMP) */ uint32_t is_rx_ccmpformat; /* rx format bad (CCMP) */ !! uint32_t is_rx_ccmpmic; /* rx MIC check failed (CCMP) */ uint32_t is_rx_tkipreplay; /* rx seq# violation (TKIP) */ uint32_t is_rx_tkipformat; /* rx format bad (TKIP) */ uint32_t is_rx_tkipmic; /* rx MIC check failed (TKIP) */ uint32_t is_rx_tkipicv; /* rx ICV check failed (TKIP) */ uint32_t is_rx_badcipher; /* rx failed 'cuz key type */ ******** @DataClump /home/yyzhou/pad/software-os-src/freebsd/sys/diskpc98.h:60:25 unsigned char dp_ipl_head; unsigned short dp_ipl_cyl; unsigned char dp_ssect; /* starting sector */ unsigned char dp_shd; /* starting head */ unsigned short dp_scyl; /* starting cylinder */ !! unsigned char dp_esect; /* end sector */ unsigned char dp_ehd; /* end head */ unsigned short dp_ecyl; /* end cylinder */ unsigned char dp_name[16]; }; #ifdef CTASSERT ******** @DataClump /home/yyzhou/pad/software-os-src/opensolaris/common/net/ppp_defs.h:237:25 #define PPP_COUNTER_F "u" typedef u_int32_t ppp_counter_t; #endif struct compstat { !! u_int32_t unc_bytes; /* total uncompressed bytes */ u_int32_t unc_packets; /* total uncompressed packets */ u_int32_t comp_bytes; /* compressed bytes */ u_int32_t comp_packets; /* compressed packets */ u_int32_t inc_bytes; /* incompressible bytes */ u_int32_t inc_packets; /* incompressible packets */ ******** @DataClump /home/yyzhou/pad/software-os-src/opensolaris/common/sys/tihdr.h:269:24 struct T_conn_req { t_scalar_t PRIM_type; /* always T_CONN_REQ */ t_scalar_t DEST_length; /* dest addr length */ t_scalar_t DEST_offset; /* dest addr offset */ !! t_scalar_t OPT_length; /* options length */ t_scalar_t OPT_offset; /* options offset */ }; /* connect response */ **** !no objs!@DoNotAddAfter *** @CloneCode ****** place:assign ******** @CloneCode /home/yyzhou/pad/software-os-src/opensolaris/common/io/ppp/sppptun/sppptun.c:2067:2 !pullupmsg(mp, sizeof (poep_t))) break; poep = (const poep_t *)mp->b_rptr; if (poep->poep_version_type != POE_VERSION) break; !! /* * First, extract a session ID number. All protocols have * this. */ isdata = (poep->poep_code == POECODE_DATA); sessid = ntohs(poep->poep_session_id); remlen = sizeof (*poep); msglen = ntohs(poep->poep_length); i = poep->poep_code; ****** place:funcall ******** @CloneCode @Reminder /home/yyzhou/pad/software-os-src/linux/drivers/net/tulip/de2104x.c:1203:2 pci_read_config_dword(de->pdev, PCIPM, &pmctl); if (pmctl & PM_Mask) { pmctl &= ~PM_Mask; pci_write_config_dword(de->pdev, PCIPM, pmctl); !! /* de4x5.c delays, so we do too */ msleep(10); } } static void de_adapter_sleep (struct de_private *de) ****** place:function ******** @CloneCode @PostEffect /home/yyzhou/pad/software-os-src/linux/sound/oss/sb_ess.c:706:0 } return devc->bits; } !!/* * FKS: This is a one-on-one copy of sbpro_audio_set_channels * (*) Modified it!! */ static short ess_audio_set_channels(int dev, short channels) { sb_devc *devc = audio_devs[dev]->devc; if (channels == 1 || channels == 2) devc->channels = channels; ******** @CloneCode @Time /home/yyzhou/pad/software-os-src/opensolaris/common/inet/tcp/tcp.c:19162:0 */ TCP_TIMER_RESTART(tcp, tcp->tcp_rto); } !!/* * The TCP normal data output path. * NOTE: the logic of the fast path is duplicated from this function. */ static void tcp_wput_data(tcp_t *tcp, mblk_t *mp, boolean_t urgent) { int len; mblk_t *local_time; ****** place:struct ******** @CloneCode /home/yyzhou/pad/software-os-src/freebsd/netgraph/bluetooth/include/ng_btsocket.h:45:0 #define BLUETOOTH_PROTO_HCI 134 /* HCI protocol number */ #define BLUETOOTH_PROTO_L2CAP 135 /* L2CAP protocol number */ #define BLUETOOTH_PROTO_RFCOMM 136 /* RFCOMM protocol number */ !!/* * Bluetooth version of struct sockaddr for raw HCI sockets */ struct sockaddr_hci { u_char hci_len; /* total length */ u_char hci_family; /* address family */ char hci_node[32]; /* address (size == NG_NODESIZ ) */ ****** place:unknown ******** @CloneCode @EndOfXXX /home/yyzhou/pad/software-os-src/freebsd/net/zlib.c:3622:0 #ifndef NO_DUMMY_DECL struct internal_state {int dummy;}; /* for buggy compilers */ #endif #endif !!/* --- infutil.h */ #ifndef NO_DUMMY_DECL struct inflate_codes_state {int dummy;}; /* for buggy compilers */ #endif *** !no objs!@Crossref **** @See ****** place:assignfield ******** @See @DataFlow @Author /home/yyzhou/pad/software-os-src/linux/net/core/sock.c:955:2 struct sock *sk; sk = sk_prot_alloc(prot, priority | __GFP_ZERO, family); if (sk) { sk->sk_family = family; !! /* * See comment in struct sock definition to understand * why we need sk_prot_creator -acme */ sk->sk_prot = sk->sk_prot_creator = prot; sock_lock_init(sk); sk->sk_net = get_net(net); } ****** place:funcall ******** @See /home/yyzhou/pad/software-os-src/linux/drivers/net/wireless/atmel.c:3785:2 /* zero all the keys before adding in valid ones. */ memset(mib.cipher_default_key_value, 0, sizeof(mib.cipher_default_key_value)); if (priv->wep_is_on) { !! /* There's a comment in the Atmel code to the effect that this is only valid when still using WEP, it may need to be set to something to use WPA */ memset(mib.key_RSC, 0, sizeof(mib.key_RSC)); mib.default_key = mib.group_key = 255; for (i = 0; i < MAX_ENCRYPTION_KEYS; i++) { if (priv->wep_key_len[i] > 0) { ****** place:function_misc ******** @See /home/yyzhou/pad/software-os-src/opensolaris/common/fs/sockfs/socksctpvnops.c:454:2 if (so_copyout(&intval, (void *)arg, sizeof (int), (mode & (int)FKIOCTL))) return (EFAULT); return (0); !! /* from strioctl */ case FIONREAD: /* * Return number of bytes of data in all data messages * in queue in "arg". * For stream socket, amount of available data. ****** place:unknown ******** @See @BadComment /home/yyzhou/pad/software-os-src/opensolaris/common/sys/fs/ufs_fs.h:652:26 /* * The same argument as above applies here. */ !!#define numfrags(fs, loc) /* calculates (loc / fs->fs_fsize) */ \ ((int32_t)((loc) >> (fs)->fs_fshift)) /* * Size can be a 64-bit value and therefore we sign extend fs_bmask * to a 64-bit value too so that the higher 32 bits are masked *** !no objs!@Designator **** @DesignatorField ****** place:initalizer_misc ******** @DesignatorField /home/yyzhou/pad/software-os-src/freebsd/cam/cam_xpt.c:376:29 { T_DIRECT, SIP_MEDIA_FIXED, seagate, "ST36530*", "*"}, /*quirks*/0, /*mintags*/2, /*maxtags*/2 }, { { T_DIRECT, SIP_MEDIA_FIXED, seagate, "ST39140*", "*"}, !! /*quirks*/0, /*mintags*/2, /*maxtags*/2 }, { /* * Slow when tagged queueing is enabled. Write performance * steadily drops off with more and more concurrent ******** @DesignatorField /home/yyzhou/pad/software-os-src/opensolaris/common/io/audio/sada/drv/audio810/audio810.c:377:8 DMA_ATTR_V0, 0, /* addr_lo */ 0xffffffff, /* addr_hi */ 0x0001fffe, /* count_max */ 2, /* align, data buffer is aligned on a 2-byte boundary */ !! 0x3c, /* burstsize */ 4, /* minxfer, set to the size of a sample data */ 0x0001ffff, /* maxxfer */ 0x0001ffff, /* seg */ 1, /* sgllen, no scatter-gather */ 4, /* granular, set to the value of minxfer */ ******** @DesignatorField @See /home/yyzhou/pad/software-os-src/opensolaris/common/io/scsi/targets/st_conf.c:1168:30 ST_NO_RECSIZE_LIMIT | /* 0008000 Supports blocks > 64KB */ ST_MODE_SEL_COMP | /* 0010000 Mode select compression */ ST_WORMABLE, /* 1000000 Drive is WORM capable */ /* ------- */ /* 1018619 */ !! -1, /* .max_rretries [Note 3] */ -1, /* .max_wretries [Note 3] */ {0x44, 0x44, 0x46, 0x46}, /* .densities Density codes [Note 1] */ MT_DENSITY4, /* .default_density (.densities[x]) */ {0, 0, 0, 0}, /* .speeds Speed codes [Note 2] */ MINUTES(1), /* .non_motion_timeout */ ******** @DesignatorField @CodeCorrelation /home/yyzhou/pad/software-os-src/opensolaris/common/io/scsi/targets/st_conf.c:2437:30 * is only supported in 2.5.1. */ { /* Structure member Description */ /* ---------------- ----------- */ "DLT4000", /* .name Display ("pretty") name */ !! 15, /* .length Length of next item... */ "SUN DLT4000", /* .vid Vendor-product ID string */ ST_TYPE_DLT, /* .type Numeric type (cf. mtio.h) */ 0, /* .bsize Block size (0 = variable) */ /* .options Drive option flags: */ ST_VARIABLE | /* 00001 Supports variable length */ ****** place:unknown ******** @DesignatorField /home/yyzhou/pad/software-os-src/opensolaris/common/os/session.c:60:9 B_FALSE, /* s_sighuped */ B_FALSE, /* s_exit */ 0, /* s_exit_cv */ 0, /* s_cnt */ 0, /* s_cnt_cv */ !! NODEV, /* s_dev */ NULL, /* s_vp */ NULL /* s_cred */ }; void **** @DesignatorMethod ****** place:initalizer_misc ******** @DesignatorMethod /home/yyzhou/pad/software-os-src/freebsd/arm/arm/cpufunc.c:158:19 (void *)cpufunc_nullop, /* l2cache_wb_range */ /* Other functions */ cpufunc_nullop, /* flush_prefetchbuf */ !! cpufunc_nullop, /* drain_writebuf */ cpufunc_nullop, /* flush_brnchtgt_C */ (void *)cpufunc_nullop, /* flush_brnchtgt_E */ (void *)cpufunc_nullop, /* sleep */ ******** @DesignatorMethod /home/yyzhou/pad/software-os-src/freebsd/arm/arm/cpufunc.c:408:26 /* Other functions */ cpufunc_nullop, /* flush_prefetchbuf */ armv4_drain_writebuf, /* drain_writebuf */ cpufunc_nullop, /* flush_brnchtgt_C */ !! (void *)cpufunc_nullop, /* flush_brnchtgt_E */ (void *)cpufunc_nullop, /* sleep */ /* Soft functions */ ******** @DesignatorMethod /home/yyzhou/pad/software-os-src/freebsd/i386/linux/linux_sysent.c:130:82 { AS(linux_syslog_args), (sy_call_t *)linux_syslog, AUE_NULL, NULL, 0, 0 }, /* 103 = linux_syslog */ { AS(linux_setitimer_args), (sy_call_t *)linux_setitimer, AUE_SETITIMER, NULL, 0, 0 }, /* 104 = linux_setitimer */ { AS(linux_getitimer_args), (sy_call_t *)linux_getitimer, AUE_GETITIMER, NULL, 0, 0 }, /* 105 = linux_getitimer */ { AS(linux_newstat_args), (sy_call_t *)linux_newstat, AUE_STAT, NULL, 0, 0 }, /* 106 = linux_newstat */ { AS(linux_newlstat_args), (sy_call_t *)linux_newlstat, AUE_LSTAT, NULL, 0, 0 }, /* 107 = linux_newlstat */ !! { AS(linux_newfstat_args), (sy_call_t *)linux_newfstat, AUE_FSTAT, NULL, 0, 0 }, /* 108 = linux_newfstat */ { 0, (sy_call_t *)linux_uname, AUE_NULL, NULL, 0, 0 }, /* 109 = linux_uname */ { AS(linux_iopl_args), (sy_call_t *)linux_iopl, AUE_NULL, NULL, 0, 0 }, /* 110 = linux_iopl */ { 0, (sy_call_t *)linux_vhangup, AUE_NULL, NULL, 0, 0 }, /* 111 = linux_vhangup */ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 112 = idle */ { 0, (sy_call_t *)linux_vm86old, AUE_NULL, NULL, 0, 0 }, /* 113 = linux_vm86old */ ******** @DesignatorMethod /home/yyzhou/pad/software-os-src/freebsd/i386/linux/linux_sysent.c:258:63 { 0, (sy_call_t *)linux_fgetxattr, AUE_NULL, NULL, 0, 0 }, /* 231 = linux_fgetxattr */ { 0, (sy_call_t *)linux_listxattr, AUE_NULL, NULL, 0, 0 }, /* 232 = linux_listxattr */ { 0, (sy_call_t *)linux_llistxattr, AUE_NULL, NULL, 0, 0 }, /* 233 = linux_llistxattr */ { 0, (sy_call_t *)linux_flistxattr, AUE_NULL, NULL, 0, 0 }, /* 234 = linux_flistxattr */ { 0, (sy_call_t *)linux_removexattr, AUE_NULL, NULL, 0, 0 }, /* 235 = linux_removexattr */ !! { 0, (sy_call_t *)linux_lremovexattr, AUE_NULL, NULL, 0, 0 }, /* 236 = linux_lremovexattr */ { 0, (sy_call_t *)linux_fremovexattr, AUE_NULL, NULL, 0, 0 }, /* 237 = linux_fremovexattr */ { AS(linux_tkill_args), (sy_call_t *)linux_tkill, AUE_NULL, NULL, 0, 0 }, /* 238 = linux_tkill */ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 239 = linux_sendfile64 */ { AS(linux_sys_futex_args), (sy_call_t *)linux_sys_futex, AUE_NULL, NULL, 0, 0 }, /* 240 = linux_sys_futex */ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0 }, /* 241 = linux_sched_setaffinity */ ******** @DesignatorMethod /home/yyzhou/pad/software-os-src/freebsd/netatm/uni/q2110_sigcpcs.c:231:16 (struct sscop *, KBuffer *, caddr_t) = { NULL, /* SOS_INST */ sscop_erak_idle, /* SOS_IDLE */ sscop_noop, /* SOS_OUTCONN */ sscop_erak_error, /* SOS_INCONN */ !! sscop_noop, /* SOS_OUTDISC */ sscop_noop, /* SOS_OUTRESYN */ sscop_erak_error, /* SOS_INRESYN */ sscop_erak_outrecov, /* SOS_OUTRECOV */ sscop_noop, /* SOS_RECOVRSP */ sscop_erak_error, /* SOS_INRECOV */ ******** @DesignatorMethod /home/yyzhou/pad/software-os-src/linux/drivers/net/wireless/airo.c:7466:22 (iw_handler) airo_set_sens, /* SIOCSIWSENS */ (iw_handler) airo_get_sens, /* SIOCGIWSENS */ (iw_handler) NULL, /* SIOCSIWRANGE */ (iw_handler) airo_get_range, /* SIOCGIWRANGE */ (iw_handler) NULL, /* SIOCSIWPRIV */ !! (iw_handler) NULL, /* SIOCGIWPRIV */ (iw_handler) NULL, /* SIOCSIWSTATS */ (iw_handler) NULL, /* SIOCGIWSTATS */ iw_handler_set_spy, /* SIOCSIWSPY */ iw_handler_get_spy, /* SIOCGIWSPY */ iw_handler_set_thrspy, /* SIOCSIWTHRSPY */ ******** @DesignatorMethod /home/yyzhou/pad/software-os-src/opensolaris/common/io/conskbd.c:179:10 nodev, /* cb_strategy */ nodev, /* cb_print */ nodev, /* cb_dump */ nodev, /* cb_read */ nodev, /* cb_write */ !! nodev, /* cb_ioctl */ nodev, /* cb_devmap */ nodev, /* cb_mmap */ nodev, /* cb_segmap */ nochpoll, /* cb_chpoll */ ddi_prop_op, /* cb_prop_op */ ******** @DesignatorMethod /home/yyzhou/pad/software-os-src/opensolaris/common/io/tphci.c:107:19 NULL, /* bus_dma_unbindhdl */ NULL, /* bus_dma_flush */ NULL, /* bus_dma_win */ NULL, /* bus_dma_ctl */ tphci_ctl, /* bus_ctl */ !! ddi_bus_prop_op, /* bus_prop_op */ NULL, /* bus_get_eventcookie */ NULL, /* bus_add_eventcall */ NULL, /* bus_remove_event */ NULL, /* bus_post_event */ NULL, /* bus_intr_ctl */ ******** @DesignatorMethod /home/yyzhou/pad/software-os-src/opensolaris/intel/io/agpgart/agpgart.c:257:18 return (0); } struct devmap_callback_ctl agp_devmap_cb = { !! DEVMAP_OPS_REV, /* rev */ agp_devmap_map, /* map */ NULL, /* access */ agp_devmap_dup, /* dup */ agp_devmap_unmap, /* unmap */ }; ******** @DesignatorMethod @RepeatType /home/yyzhou/pad/software-os-src/opensolaris/sun4u/io/i2c/clients/pcf8591.c:80:10 ddi_prop_op, /* cb_prop_op */ NULL, /* streamtab */ D_NEW | D_MP | D_HOTPLUG, /* Driver compatibility flag */ CB_REV, /* rev */ nodev, /* int (*cb_aread)() */ !! nodev /* int (*cb_awrite)() */ }; /* * dev ops */ ******** @DesignatorMethod /home/yyzhou/pad/software-os-src/opensolaris/sun4u/io/i2c/nexus/pcf8584.c:101:10 static struct bus_ops pcf8584_busops = { BUSO_REV, nullbusmap, /* bus_map */ NULL, /* bus_get_intrspec */ NULL, /* bus_add_intrspec */ !! NULL, /* bus_remove_intrspec */ NULL, /* bus_map_fault */ ddi_no_dma_map, /* bus_dma_map */ ddi_no_dma_allochdl, /* bus_dma_allochdl */ ddi_no_dma_freehdl, /* bus_dma_freehdl */ ddi_no_dma_bindhdl, /* bus_dma_bindhdl */ ******** @DesignatorMethod /home/yyzhou/pad/software-os-src/opensolaris/sun4u/io/todds1287.c:144:19 static int ds1287_detach(dev_info_t *, ddi_detach_cmd_t); static struct dev_ops ds1287_ops = { DEVO_REV, /* devo_rev */ 0, /* refcnt */ !! ds1287_getinfo, /* getinfo */ nulldev, /* identify */ nulldev, /* probe */ ds1287_attach, /* attach */ ds1287_detach, /* detach */ nodev, /* reset */ ******** @DesignatorMethod /home/yyzhou/pad/software-os-src/opensolaris/sun4u/serengeti/io/sghsc.c:97:10 nodev, /* strategy */ nodev, /* print */ nodev, /* dump */ nodev, /* read */ nodev, /* write */ !! nodev, /* ioctl */ nodev, /* devmap */ nodev, /* mmap */ nodev, /* segmap */ nochpoll, /* poll */ ddi_prop_op, /* prop_op */ ******** @DesignatorMethod /home/yyzhou/pad/software-os-src/opensolaris/sun4u/sunfire/io/central.c:70:15 /* * Configuration Data Structures */ static struct bus_ops central_bus_ops = { BUSO_REV, !! ddi_bus_map, /* map */ 0, /* get_intrspec */ 0, /* add_intrspec */ 0, /* remove_intrspec */ i_ddi_map_fault, /* map_fault */ ddi_no_dma_map, /* dma_map */ **** @DesignatorArray ****** place:initalizer_misc ******** @DesignatorArray /home/yyzhou/pad/software-os-src/freebsd/amd64/amd64/db_disasm.c:434:0 }; static const struct finst db_Escb[] = { /*0*/ { "fild", LONG, 0, 0 }, /*1*/ { "", NONE, 0, 0 }, !!/*2*/ { "fist", LONG, 0, 0 }, /*3*/ { "fistp", LONG, 0, 0 }, /*4*/ { "", WORD, op1(X), db_Escb4 }, /*5*/ { "fld", EXTR, 0, 0 }, /*6*/ { "", WORD, 0, 0 }, /*7*/ { "fstp", EXTR, 0, 0 }, ******** @DesignatorArray /home/yyzhou/pad/software-os-src/freebsd/pc98/cbus/pckbdtables.h:92:2 {{/*30*/ ',', '<', '<', '<', ',', '<', '<', '<' }, 0x00,0x00 }, {{/*31*/ '.', '>', '>', '>', '.', '>', '>', '>' }, 0x00,0x00 }, {{/*32*/ '/', '?', 0x7F, 0x7F, '/', '?', 0x7F, 0x7F }, 0x00,0x00 }, {{/*33*/ NOP, '_', 0x1F, 0x1F, '\\', '|', 0x1C, 0x1C }, 0x80,0x00 }, {{/*34*/ ' ', ' ', 0x00, 0x00, ' ', ' ', 0x00, 0x00 }, 0x00,0x00 }, !!{{/*35*/ 0x1B, 0x1B, 0x1B, 0x1B, 0x1B, 0x1B, 0x1B, 0x1B }, 0x00,0x00 }, {{/*36*/ F(59), F(59), F(59), F(59), F(59), F(59), F(59), F(59) }, 0xFF,0x00 }, {{/*37*/ F(51), F(51), F(51), F(51), F(51), F(51), F(51), F(51) }, 0xFF,0x00 }, {{/*38*/ F(60), F(60), F(60), F(60), F(60), F(60), F(60), F(60) }, 0xFF,0x00 }, {{/*39*/ 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, RBT, RBT }, 0x03,0x02 }, {{/*3a*/ F(50), F(50), F(50), F(50), F(50), F(50), F(50), F(50) }, 0xFF,0x00 }, ******** @DesignatorArray @Unit @Diagram /home/yyzhou/pad/software-os-src/freebsd/powerpc/ofw/ofw_syscons.c:169:23 { 0x00, 0xaa, 0x00 }, /* 2 0 2/3 0 Green */ { 0x00, 0xaa, 0xaa }, /* 3 0 2/3 2/3 Cyan */ { 0xaa, 0x00, 0x00 }, /* 4 2/3 0 0 Red */ { 0xaa, 0x00, 0xaa }, /* 5 2/3 0 2/3 Magenta */ { 0xaa, 0x55, 0x00 }, /* 6 2/3 1/3 0 Brown */ !! { 0xaa, 0xaa, 0xaa }, /* 7 2/3 2/3 2/3 White */ { 0x55, 0x55, 0x55 }, /* 8 1/3 1/3 1/3 Gray */ { 0x55, 0x55, 0xff }, /* 9 1/3 1/3 1 Bright Blue */ { 0x55, 0xff, 0x55 }, /* 10 1/3 1 1/3 Bright Green */ { 0x55, 0xff, 0xff }, /* 11 1/3 1 1 Bright Cyan */ { 0xff, 0x55, 0x55 }, /* 12 1 1/3 1/3 Bright Red */ ******** @DesignatorArray /home/yyzhou/pad/software-os-src/linux/drivers/acpi/parser/psopcode.c:583:0 AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT), /* 71 */ ACPI_OP("Mod", ARGP_MOD_OP, ARGI_MOD_OP, ACPI_TYPE_ANY, AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT), !!/* 72 */ ACPI_OP("CreateQWordField", ARGP_CREATE_QWORD_FIELD_OP, ARGI_CREATE_QWORD_FIELD_OP, ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE, AML_TYPE_CREATE_FIELD, AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE | AML_DEFER | AML_CREATE), ******** @DesignatorArray /home/yyzhou/pad/software-os-src/linux/drivers/video/console/font_10x18.c:1632:1 0xf0, 0x00, /* 1111000000 */ 0x00, 0x00, /* 0000000000 */ 0x00, 0x00, /* 0000000000 */ 0x00, 0x00, /* 0000000000 */ !! /* 81 0x51 'Q' */ 0x00, 0x00, /* 0000000000 */ 0x0e, 0x00, /* 0000111000 */ 0x13, 0x00, /* 0001001100 */ 0x23, 0x00, /* 0010001100 */ 0x21, 0x80, /* 0010000110 */ ******** @DesignatorArray /home/yyzhou/pad/software-os-src/linux/fs/hfsplus/tables.c:357:4 0xFE58, 0xFE59, 0xFE5A, 0xFE5B, 0xFE5C, 0xFE5D, 0xFE5E, 0xFE5F, /* 6 */ 0xFE60, 0xFE61, 0xFE62, 0xFE63, 0xFE64, 0xFE65, 0xFE66, 0xFE67, 0xFE68, 0xFE69, 0xFE6A, 0xFE6B, 0xFE6C, 0xFE6D, 0xFE6E, 0xFE6F, /* 7 */ 0xFE70, 0xFE71, 0xFE72, 0xFE73, 0xFE74, 0xFE75, 0xFE76, 0xFE77, 0xFE78, 0xFE79, 0xFE7A, 0xFE7B, 0xFE7C, 0xFE7D, 0xFE7E, 0xFE7F, !! /* 8 */ 0xFE80, 0xFE81, 0xFE82, 0xFE83, 0xFE84, 0xFE85, 0xFE86, 0xFE87, 0xFE88, 0xFE89, 0xFE8A, 0xFE8B, 0xFE8C, 0xFE8D, 0xFE8E, 0xFE8F, /* 9 */ 0xFE90, 0xFE91, 0xFE92, 0xFE93, 0xFE94, 0xFE95, 0xFE96, 0xFE97, 0xFE98, 0xFE99, 0xFE9A, 0xFE9B, 0xFE9C, 0xFE9D, 0xFE9E, 0xFE9F, /* A */ 0xFEA0, 0xFEA1, 0xFEA2, 0xFEA3, 0xFEA4, 0xFEA5, 0xFEA6, 0xFEA7, 0xFEA8, 0xFEA9, 0xFEAA, 0xFEAB, 0xFEAC, 0xFEAD, 0xFEAE, 0xFEAF, ******** @DesignatorArray /home/yyzhou/pad/software-os-src/linux/fs/hfsplus/tables.c:386:4 0xFF48, 0xFF49, 0xFF4A, 0xFF4B, 0xFF4C, 0xFF4D, 0xFF4E, 0xFF4F, /* 3 */ 0xFF50, 0xFF51, 0xFF52, 0xFF53, 0xFF54, 0xFF55, 0xFF56, 0xFF57, 0xFF58, 0xFF59, 0xFF5A, 0xFF3B, 0xFF3C, 0xFF3D, 0xFF3E, 0xFF3F, /* 4 */ 0xFF40, 0xFF41, 0xFF42, 0xFF43, 0xFF44, 0xFF45, 0xFF46, 0xFF47, 0xFF48, 0xFF49, 0xFF4A, 0xFF4B, 0xFF4C, 0xFF4D, 0xFF4E, 0xFF4F, !! /* 5 */ 0xFF50, 0xFF51, 0xFF52, 0xFF53, 0xFF54, 0xFF55, 0xFF56, 0xFF57, 0xFF58, 0xFF59, 0xFF5A, 0xFF5B, 0xFF5C, 0xFF5D, 0xFF5E, 0xFF5F, /* 6 */ 0xFF60, 0xFF61, 0xFF62, 0xFF63, 0xFF64, 0xFF65, 0xFF66, 0xFF67, 0xFF68, 0xFF69, 0xFF6A, 0xFF6B, 0xFF6C, 0xFF6D, 0xFF6E, 0xFF6F, /* 7 */ 0xFF70, 0xFF71, 0xFF72, 0xFF73, 0xFF74, 0xFF75, 0xFF76, 0xFF77, 0xFF78, 0xFF79, 0xFF7A, 0xFF7B, 0xFF7C, 0xFF7D, 0xFF7E, 0xFF7F, ******** @DesignatorArray /home/yyzhou/pad/software-os-src/linux/sound/isa/gus/gus_tables.h:57:37 }; #endif /* 0 */ unsigned short snd_gf1_atten_table[SNDRV_GF1_ATTEN_TABLE_SIZE] = { !! 4095 /* 0 */,1789 /* 1 */,1533 /* 2 */,1383 /* 3 */,1277 /* 4 */, 1195 /* 5 */,1127 /* 6 */,1070 /* 7 */,1021 /* 8 */,978 /* 9 */, 939 /* 10 */,903 /* 11 */,871 /* 12 */,842 /* 13 */,814 /* 14 */, 789 /* 15 */,765 /* 16 */,743 /* 17 */,722 /* 18 */,702 /* 19 */, 683 /* 20 */,665 /* 21 */,647 /* 22 */,631 /* 23 */,615 /* 24 */, 600 /* 25 */,586 /* 26 */,572 /* 27 */,558 /* 28 */,545 /* 29 */, ******** @DesignatorArray @Unit /home/yyzhou/pad/software-os-src/linux/sound/pci/mixart/mixart_mixer.c:185:14 0xc1c40000, /* [143] -24.5 dB */ 0xc1c00000, /* [144] -24.0 dB */ 0xc1bc0000, /* [145] -23.5 dB */ 0xc1b80000, /* [146] -23.0 dB */ 0xc1b40000, /* [147] -22.5 dB */ !! 0xc1b00000, /* [148] -22.0 dB */ 0xc1ac0000, /* [149] -21.5 dB */ 0xc1a80000, /* [150] -21.0 dB */ 0xc1a40000, /* [151] -20.5 dB */ 0xc1a00000, /* [152] -20.0 dB */ 0xc19c0000, /* [153] -19.5 dB */ ******** @DesignatorArray /home/yyzhou/pad/software-os-src/opensolaris/common/fs/smbsrv/smb_dispatch.c:470:31 { 0, 0, 0, RW_READER, 0 }, /* 0x59 089 */ { 0, 0, 0, RW_READER, 0 }, /* 0x5A 090 */ { 0, 0, 0, RW_READER, 0 }, /* 0x5B 091 */ { 0, 0, 0, RW_READER, 0 }, /* 0x5C 092 */ { 0, 0, 0, RW_READER, 0 }, /* 0x5D 093 */ !! { 0, 0, 0, RW_READER, 0 }, /* 0x5E 094 */ { 0, 0, 0, RW_READER, 0 }, /* 0x5F 095 */ { 0, 0, 0, RW_READER, 0 }, /* 0x60 096 */ { 0, 0, 0, RW_READER, 0 }, /* 0x61 097 */ { 0, 0, 0, RW_READER, 0 }, /* 0x62 098 */ { 0, 0, 0, RW_READER, 0 }, /* 0x63 099 */ ******** @DesignatorArray /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip/ip.c:1096:1 /* copyin size cannot be coded for SIOCGIFCONF */ /* 092 */ { SIOCGIFCONF, 0, IPI_GET_CMD, MISC_CMD, ip_sioctl_get_ifconf, NULL }, /* 093 */ { IPI_DONTCARE, 0, 0, 0, NULL, NULL }, !! /* 094 */ { IPI_DONTCARE, 0, 0, 0, NULL, NULL }, /* 095 */ { IPI_DONTCARE, 0, 0, 0, NULL, NULL }, /* 096 */ { IPI_DONTCARE, 0, 0, 0, NULL, NULL }, /* 097 */ { IPI_DONTCARE, 0, 0, 0, NULL, NULL }, /* 098 */ { IPI_DONTCARE, 0, 0, 0, NULL, NULL }, /* 099 */ { IPI_DONTCARE, 0, 0, 0, NULL, NULL }, ******** @DesignatorArray /home/yyzhou/pad/software-os-src/opensolaris/common/io/kb8042/at_keyprocess.c:265:0 /* 0d */ INVALID, /* 0e */ INVALID, /* 0f */ INVALID, /* 10 */ INVALID, !!/* 11 */ INVALID, /* 12 */ INVALID, /* 13 */ INVALID, /* 14 */ INVALID, /* 15 */ INVALID, /* 16 */ INVALID, ******** @DesignatorArray /home/yyzhou/pad/software-os-src/opensolaris/common/io/kb8042/at_keyprocess.c:275:0 /* 16 */ INVALID, /* 17 */ INVALID, /* 18 */ INVALID, /* 19 */ INVALID, /* 1a */ INVALID, !!/* 1b */ INVALID, /* 1c */ KEY(108), /* Enter (num) */ /* 1d */ KEY(64), /* R Ctrl */ /* 1e */ INVALID, /* 1f */ INVALID, ******** @DesignatorArray /home/yyzhou/pad/software-os-src/opensolaris/common/io/kbtrans/kbtrans_keytables.c:192:6 112, /* 105 (i) */ -1, /* 106 (j) */ -1, /* 107 (k) */ 112, /* 108 (l) */ -1, /* 109 (m) */ !! 103, /* 110 (n) */ 104, /* 111 (o) */ 108, /* 112 (p) */ -1, /* 113 (q) */ 112, /* 114 (r) */ 109, /* 115 (s) */ ******** @DesignatorArray /home/yyzhou/pad/software-os-src/opensolaris/common/sys/kiconv_emea1.h:787:24 { 0xC5, 0x81, 0x00 }, /* 0xA3 */ { 0xC2, 0xA4, 0x00 }, /* 0xA4 */ { 0xC4, 0x84, 0x00 }, /* 0xA5 */ { 0xC2, 0xA6, 0x00 }, /* 0xA6 */ { 0xC2, 0xA7, 0x00 }, /* 0xA7 */ !! { 0xC2, 0xA8, 0x00 }, /* 0xA8 */ { 0xC2, 0xA9, 0x00 }, /* 0xA9 */ { 0xC5, 0x9E, 0x00 }, /* 0xAA */ { 0xC2, 0xAB, 0x00 }, /* 0xAB */ { 0xC2, 0xAC, 0x00 }, /* 0xAC */ { 0xC2, 0xAD, 0x00 }, /* 0xAD */ ******** @DesignatorArray /home/yyzhou/pad/software-os-src/opensolaris/common/sys/u8_textprep_data.h:34534:4 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, }, !! { /* Fourth byte table 32. */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ******** @DesignatorArray /home/yyzhou/pad/software-os-src/opensolaris/i86pc/os/cpuid.c:285:19 /* * Family 0xf revisions B through E */ #define A_SKTS_0 0 { !! X86_SOCKET_754, /* 0b00 */ X86_SOCKET_940, /* 0b01 */ X86_SOCKET_754, /* 0b10 */ X86_SOCKET_939 /* 0b11 */ }, /* ****** place:unknown ******** @DesignatorArray /home/yyzhou/pad/software-os-src/opensolaris/common/smbsrv/cp_cyrillic.h:74:42 { CODEPAGE_ISNONE, 0x0013, 0x0013 }, /* 0x0013 */ { CODEPAGE_ISNONE, 0x0014, 0x0014 }, /* 0x0014 */ { CODEPAGE_ISNONE, 0x0015, 0x0015 }, /* 0x0015 */ { CODEPAGE_ISNONE, 0x0016, 0x0016 }, /* 0x0016 */ { CODEPAGE_ISNONE, 0x0017, 0x0017 }, /* 0x0017 */ !! { CODEPAGE_ISNONE, 0x0018, 0x0018 }, /* 0x0018 */ { CODEPAGE_ISNONE, 0x0019, 0x0019 }, /* 0x0019 */ { CODEPAGE_ISNONE, 0x001a, 0x001a }, /* 0x001a */ { CODEPAGE_ISNONE, 0x001b, 0x001b }, /* 0x001b */ { CODEPAGE_ISNONE, 0x001c, 0x001c }, /* 0x001c */ { CODEPAGE_ISNONE, 0x001d, 0x001d }, /* 0x001d */ ******** @DesignatorArray /home/yyzhou/pad/software-os-src/opensolaris/sun4u/io/pci/pci_intr.c:98:7 4, /* 0x26: 2nd SCSI */ 8, /* 0x27: floppy */ 14, /* 0x28: thermal warning */ 12, /* 0x29: keyboard */ 12, /* 0x2A: mouse */ !! 12, /* 0x2B: serial */ 0, /* 0x2C: timer/counter 0 */ 0, /* 0x2D: timer/counter 1 */ 14, /* 0x2E: uncorrectable ECC errors */ 14, /* 0x2F: correctable ECC errors */ 14, /* 0x30: PCI bus A error */ **** @DesignatorArrayHash ****** place:initalizer_misc ******** @DesignatorArrayHash /home/yyzhou/pad/software-os-src/freebsd/cam/scsi/scsi_all.c:1300:0 "Internal target failure") }, /* DTLPWRSOMCAE */{SST(0x45, 0x00, SS_RDEF, "Select or reselect failure") }, /* DTLPWRSOMC */{SST(0x46, 0x00, SS_RDEF, "Unsuccessful soft reset") }, !!/* DTLPWRSOMCAE */{SST(0x47, 0x00, SS_RDEF, "SCSI parity error") }, /* DTLPWRSOMCAE */{SST(0x48, 0x00, SS_RDEF, "Initiator detected error message received") }, /* DTLPWRSOMCAE */{SST(0x49, 0x00, SS_RDEF, "Invalid message error") }, ******** @DesignatorArrayHash /home/yyzhou/pad/software-os-src/freebsd/contrib/dev/acpica/rsinfo.c:189:36 NULL, /* 0x00, Reserved */ AcpiRsConvertMemory24, /* 0x01, ACPI_RESOURCE_NAME_MEMORY24 */ AcpiRsConvertGenericReg, /* 0x02, ACPI_RESOURCE_NAME_GENERIC_REGISTER */ NULL, /* 0x03, Reserved */ !! AcpiRsGetVendorLarge, /* 0x04, ACPI_RESOURCE_NAME_VENDOR_LARGE */ AcpiRsConvertMemory32, /* 0x05, ACPI_RESOURCE_NAME_MEMORY32 */ AcpiRsConvertFixedMemory32, /* 0x06, ACPI_RESOURCE_NAME_FIXED_MEMORY32 */ AcpiRsConvertAddress32, /* 0x07, ACPI_RESOURCE_NAME_ADDRESS32 */ AcpiRsConvertAddress16, /* 0x08, ACPI_RESOURCE_NAME_ADDRESS16 */ AcpiRsConvertExtIrq, /* 0x09, ACPI_RESOURCE_NAME_EXTENDED_IRQ */ ******** @DesignatorArrayHash /home/yyzhou/pad/software-os-src/freebsd/dev/isp/isp.c:6493:23 ISPOPMAP(0x0f, 0x01), /* 0x6c: MBOX_INIT_LIP_RESET */ ISPOPMAP(0x00, 0x00), /* 0x6d: */ ISPOPMAP(0xcf, 0x03), /* 0x6e: MBOX_SEND_SNS */ ISPOPMAP(0x0f, 0x07), /* 0x6f: MBOX_FABRIC_LOGIN */ ISPOPMAP(0x03, 0x01), /* 0x70: MBOX_SEND_CHANGE_REQUEST */ !! ISPOPMAP(0x03, 0x03), /* 0x71: MBOX_FABRIC_LOGOUT */ ISPOPMAP(0x0f, 0x0f), /* 0x72: MBOX_INIT_LIP_LOGIN */ ISPOPMAP(0x00, 0x00), /* 0x73: */ ISPOPMAP(0x07, 0x01), /* 0x74: LOGIN LOOP PORT */ ISPOPMAP(0xcf, 0x03), /* 0x75: GET PORT/NODE NAME LIST */ ISPOPMAP(0x4f, 0x01), /* 0x76: SET VENDOR ID */ ******** @DesignatorArrayHash /home/yyzhou/pad/software-os-src/opensolaris/common/inet/ip/spd.c:195:1 /* * Policy failure messages. */ static char *ipsec_policy_failure_msgs[] = { !! /* IPSEC_POLICY_NOT_NEEDED */ "%s: Dropping the datagram because the incoming packet " "is %s, but the recipient expects clear; Source %s, " "Destination %s.\n", /* IPSEC_POLICY_MISMATCH */ ******** @DesignatorArrayHash /home/yyzhou/pad/software-os-src/opensolaris/intel/ia32/krtld/doreloc.c:83:0 /* R_386_UNKNOWN30 */ {FLG_RE_NOTSUP, 0}, /* R_386_UNKNOWN31 */ {FLG_RE_NOTSUP, 0}, /* R_386_TLS_LDO_32 */ {FLG_RE_TLSLD, 4}, /* R_386_UNKNOWN33 */ {FLG_RE_NOTSUP, 0}, /* R_386_UNKNOWN34 */ {FLG_RE_NOTSUP, 0}, !!/* R_386_TLS_DTPMOD32 */ {FLG_RE_NOTREL, 4}, /* R_386_TLS_DTPOFF32 */ {FLG_RE_NOTREL, 4}, /* R_386_UNKONWN37 */ {FLG_RE_NOTSUP, 0}, /* R_386_SIZE32 */ {FLG_RE_SIZE | FLG_RE_VERIFY, 4} }; ******** @DesignatorArrayHash /home/yyzhou/pad/software-os-src/opensolaris/sparc/krtld/doreloc.c:134:0 8, 0, 0}, /* R_SPARC_PLT64 */ {0x0, FLG_RE_PLTREL | FLG_RE_VERIFY | FLG_RE_ADDRELATIVE, 8, 0, 0}, /* R_SPARC_HIX22 */ {(Xword)(-1LL), FLG_RE_VERIFY, 4, 10, 22}, /* V9 - HaL */ !!/* R_SPARC_LOX10 */ {0x3ff, FLG_RE_SIGN, 4, 0, 13}, /* V9 - HaL */ /* R_SPARC_H44 */ {0x0, FLG_RE_VERIFY, 4, 22, 22}, /* V9 */ /* R_SPARC_M44 */ {0x3ff, FLG_RE_NOTREL, 4, 12, 10}, /* V9 */ /* R_SPARC_L44 */ {0xfff, FLG_RE_NOTREL, 4, 0, 13}, /* V9 */ /* R_SPARC_REGISTER */ {0x0, FLG_RE_REGISTER, 0, 0, 0}, /* SPECIAL */ /* R_SPARC_UA64 */ {0x0, FLG_RE_VERIFY | FLG_RE_UNALIGN, ****** place:unknown ******** @DesignatorArrayHash /home/yyzhou/pad/software-os-src/freebsd/dev/ray/if_raymib.h:411:23 {RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_INFRA_SCAN_CYCLE */ \ {RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_INFRA_SUPER_SCAN_CYCLE */ \ {RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_PROMISC */ \ {RAY_V4|RAY_V5, 2, 2}, /* RAY_MIB_UNIQ_WORD */ \ {RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_SLOT_TIME */ \ !!{RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_ROAM_LOW_SNR_THRESH */ \ {RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_LOW_SNR_COUNT */ \ {RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_INFRA_MISSED_BEACON_COUNT */ \ {RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_ADHOC_MISSED_BEACON_COUNT */ \ {RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_COUNTRY_CODE */ \ {RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_HOP_SEQ */ \ **** @ByteRange ****** place:initalizer_misc ******** @ByteRange /home/yyzhou/pad/software-os-src/freebsd/dev/si/si2_z280.c:444:42 0x00,0xDD,0x3E,0xC3,0x05,0x01,0xC9,0xCD, /* 0C30: .Ý>Ã..ÉÍ */ 0xF3,0x08,0xFD,0x7E,0x6C,0xE6,0x80,0x28, /* 0C38: ó.ý~læ( */ 0x0A,0xDD,0x36,0xAE,0x00,0xDD,0x3E,0xC3, /* 0C40: .Ý6®.Ý>à */ 0x05,0x01,0xC9,0xDD,0x36,0xAE,0x06,0xC9, /* 0C48: ..ÉÝ6®.É */ 0xCD,0x40,0x09,0x18,0x05,0xFD,0xED,0x2C, /* 0C50: Í@...ýí, */ !! 0xA2,0xFF,0xCD,0x37,0x0C,0x26,0x00,0xC3, /* 0C58: ¢ÿÍ7.&.à */ 0x12,0x0D,0xCD,0x40,0x09,0x26,0x00,0xC3, /* 0C60: ..Í@.&.à */ 0x12,0x0D,0xCD,0xFC,0x1C,0x26,0x00,0xC3, /* 0C68: ..Íü.&.à */ 0x12,0x0D,0xCD,0xFC,0x1C,0x26,0x00,0xC3, /* 0C70: ..Íü.&.à */ 0x12,0x0D,0x26,0x00,0xC3,0x12,0x0D,0xCD, /* 0C78: ..&.Ã..Í */ 0xF3,0x08,0xFD,0x7E,0x05,0xFE,0x00,0x28, /* 0C80: ó.ý~.þ.( */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp932.c:4470:49 0x00, 0x00, 0x00, 0x00, 0xE0, 0x70, 0x00, 0x00, /* 0x3C-0x3F */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x40-0x43 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x44-0x47 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x48-0x4B */ 0x9F, 0xF3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x4C-0x4F */ !! 0x00, 0x00, 0xE0, 0x72, 0x00, 0x00, 0x00, 0x00, /* 0x50-0x53 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x54-0x57 */ 0x93, 0xE5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x58-0x5B */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x5C-0x5F */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x73, /* 0x60-0x63 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x64-0x67 */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp932.c:5521:49 0xE3, 0xD1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1C-0x1F */ 0x00, 0x00, 0xE3, 0xD2, 0x00, 0x00, 0x00, 0x00, /* 0x20-0x23 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x24-0x27 */ 0xE3, 0xD3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x28-0x2B */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2C-0x2F */ !! 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8E, 0xA8, /* 0x30-0x33 */ 0x00, 0x00, 0x00, 0x00, 0x96, 0xEB, 0x00, 0x00, /* 0x34-0x37 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE3, 0xD5, /* 0x38-0x3B */ 0x00, 0x00, 0x92, 0x5E, 0x00, 0x00, 0xE3, 0xD4, /* 0x3C-0x3F */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x40-0x43 */ 0x00, 0x00, 0x00, 0x00, 0xE3, 0xD7, 0x00, 0x00, /* 0x44-0x47 */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp932.c:6276:49 0x00, 0x00, 0xE6, 0x96, 0x00, 0x00, 0x00, 0x00, /* 0x40-0x43 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x44-0x47 */ 0x00, 0x00, 0xE6, 0x9A, 0x00, 0x00, 0x00, 0x00, /* 0x48-0x4B */ 0xE6, 0x97, 0x00, 0x00, 0xE6, 0x99, 0xE6, 0x98, /* 0x4C-0x4F */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEE, 0x8F, /* 0x50-0x53 */ !! 0x00, 0x00, 0x00, 0x00, 0xE6, 0x9B, 0x00, 0x00, /* 0x54-0x57 */ 0x8E, 0xAF, 0x00, 0x00, 0xE6, 0x9D, 0xE6, 0x9C, /* 0x58-0x5B */ 0x95, 0x88, 0x00, 0x00, 0x00, 0x00, 0xE6, 0x9F, /* 0x5C-0x5F */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x60-0x63 */ 0x00, 0x00, 0x00, 0x00, 0x8C, 0x78, 0x00, 0x00, /* 0x64-0x67 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE6, 0x9E, /* 0x68-0x6B */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp932.c:7681:49 0x82, 0x57, 0x82, 0x58, 0x81, 0x46, 0x81, 0x47, /* 0x18-0x1B */ 0x81, 0x83, 0x81, 0x81, 0x81, 0x84, 0x81, 0x48, /* 0x1C-0x1F */ 0x81, 0x97, 0x82, 0x60, 0x82, 0x61, 0x82, 0x62, /* 0x20-0x23 */ 0x82, 0x63, 0x82, 0x64, 0x82, 0x65, 0x82, 0x66, /* 0x24-0x27 */ 0x82, 0x67, 0x82, 0x68, 0x82, 0x69, 0x82, 0x6A, /* 0x28-0x2B */ !! 0x82, 0x6B, 0x82, 0x6C, 0x82, 0x6D, 0x82, 0x6E, /* 0x2C-0x2F */ 0x82, 0x6F, 0x82, 0x70, 0x82, 0x71, 0x82, 0x72, /* 0x30-0x33 */ 0x82, 0x73, 0x82, 0x74, 0x82, 0x75, 0x82, 0x76, /* 0x34-0x37 */ 0x82, 0x77, 0x82, 0x78, 0x82, 0x79, 0x81, 0x6D, /* 0x38-0x3B */ 0x81, 0x5F, 0x81, 0x6E, 0x81, 0x4F, 0x81, 0x51, /* 0x3C-0x3F */ 0x81, 0x4D, 0x82, 0x81, 0x82, 0x82, 0x82, 0x83, /* 0x40-0x43 */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp936.c:1408:57 0x0000,0x0410,0x0411,0x0412,0x0413,0x0414,0x0415,0x0401,/* 0xA0-0xA7 */ 0x0416,0x0417,0x0418,0x0419,0x041A,0x041B,0x041C,0x041D,/* 0xA8-0xAF */ 0x041E,0x041F,0x0420,0x0421,0x0422,0x0423,0x0424,0x0425,/* 0xB0-0xB7 */ 0x0426,0x0427,0x0428,0x0429,0x042A,0x042B,0x042C,0x042D,/* 0xB8-0xBF */ 0x042E,0x042F,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0xC0-0xC7 */ !! 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0xC8-0xCF */ 0x0000,0x0430,0x0431,0x0432,0x0433,0x0434,0x0435,0x0451,/* 0xD0-0xD7 */ 0x0436,0x0437,0x0438,0x0439,0x043A,0x043B,0x043C,0x043D,/* 0xD8-0xDF */ 0x043E,0x043F,0x0440,0x0441,0x0442,0x0443,0x0444,0x0445,/* 0xE0-0xE7 */ 0x0446,0x0447,0x0448,0x0449,0x044A,0x044B,0x044C,0x044D,/* 0xE8-0xEF */ 0x044E,0x044F,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0xF0-0xF7 */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp936.c:2949:57 0x8A47,0x8A49,0x8A4A,0x8A4B,0x8A4C,0x8A4D,0x8A4E,0x8A4F,/* 0x68-0x6F */ 0x8A50,0x8A51,0x8A52,0x8A53,0x8A54,0x8A55,0x8A56,0x8A57,/* 0x70-0x77 */ 0x8A58,0x8A59,0x8A5A,0x8A5B,0x8A5C,0x8A5D,0x8A5E,0x0000,/* 0x78-0x7F */ 0x8A5F,0x8A60,0x8A61,0x8A62,0x8A63,0x8A64,0x8A65,0x8A66,/* 0x80-0x87 */ !! 0x8A67,0x8A68,0x8A69,0x8A6A,0x8A6B,0x8A6C,0x8A6D,0x8A6E,/* 0x88-0x8F */ 0x8A6F,0x8A70,0x8A71,0x8A72,0x8A73,0x8A74,0x8A75,0x8A76,/* 0x90-0x97 */ 0x8A77,0x8A78,0x8A7A,0x8A7B,0x8A7C,0x8A7D,0x8A7E,0x8A7F,/* 0x98-0x9F */ 0x8A80,0x6D74,0x5BD3,0x88D5,0x9884,0x8C6B,0x9A6D,0x9E33,/* 0xA0-0xA7 */ 0x6E0A,0x51A4,0x5143,0x57A3,0x8881,0x539F,0x63F4,0x8F95,/* 0xA8-0xAF */ 0x56ED,0x5458,0x5706,0x733F,0x6E90,0x7F18,0x8FDC,0x82D1,/* 0xB0-0xB7 */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp936.c:5256:49 0x81, 0xD7, 0xBA, 0xCE, 0x81, 0xD8, 0xD9, 0xA2, /* 0x54-0x57 */ 0xD9, 0xDC, 0xD3, 0xE0, 0xD8, 0xFD, 0xB7, 0xF0, /* 0x58-0x5B */ 0xD7, 0xF7, 0xD8, 0xFE, 0xD8, 0xFA, 0xD9, 0xA1, /* 0x5C-0x5F */ 0xC4, 0xE3, 0x81, 0xD9, 0x81, 0xDA, 0xD3, 0xB6, /* 0x60-0x63 */ 0xD8, 0xF4, 0xD9, 0xDD, 0x81, 0xDB, 0xD8, 0xFB, /* 0x64-0x67 */ !! 0x81, 0xDC, 0xC5, 0xE5, 0x81, 0xDD, 0x81, 0xDE, /* 0x68-0x6B */ 0xC0, 0xD0, 0x81, 0xDF, 0x81, 0xE0, 0xD1, 0xF0, /* 0x6C-0x6F */ 0xB0, 0xDB, 0x81, 0xE1, 0x81, 0xE2, 0xBC, 0xD1, /* 0x70-0x73 */ 0xD9, 0xA6, 0x81, 0xE3, 0xD9, 0xA5, 0x81, 0xE4, /* 0x74-0x77 */ 0x81, 0xE5, 0x81, 0xE6, 0x81, 0xE7, 0xD9, 0xAC, /* 0x78-0x7B */ 0xD9, 0xAE, 0x81, 0xE8, 0xD9, 0xAB, 0xCA, 0xB9, /* 0x7C-0x7F */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp936.c:6329:49 0xBA, 0xEB, 0x8F, 0x76, 0x8F, 0x77, 0xB3, 0xDA, /* 0x18-0x1B */ 0x8F, 0x78, 0x8F, 0x79, 0x8F, 0x7A, 0xB5, 0xDC, /* 0x1C-0x1F */ 0xD5, 0xC5, 0x8F, 0x7B, 0x8F, 0x7C, 0x8F, 0x7D, /* 0x20-0x23 */ 0x8F, 0x7E, 0xC3, 0xD6, 0xCF, 0xD2, 0xBB, 0xA1, /* 0x24-0x27 */ 0x8F, 0x80, 0xE5, 0xF3, 0xE5, 0xF2, 0x8F, 0x81, /* 0x28-0x2B */ !! 0x8F, 0x82, 0xE5, 0xF4, 0x8F, 0x83, 0xCD, 0xE4, /* 0x2C-0x2F */ 0x8F, 0x84, 0xC8, 0xF5, 0x8F, 0x85, 0x8F, 0x86, /* 0x30-0x33 */ 0x8F, 0x87, 0x8F, 0x88, 0x8F, 0x89, 0x8F, 0x8A, /* 0x34-0x37 */ 0x8F, 0x8B, 0xB5, 0xAF, 0xC7, 0xBF, 0x8F, 0x8C, /* 0x38-0x3B */ 0xE5, 0xF6, 0x8F, 0x8D, 0x8F, 0x8E, 0x8F, 0x8F, /* 0x3C-0x3F */ 0xEC, 0xB0, 0x8F, 0x90, 0x8F, 0x91, 0x8F, 0x92, /* 0x40-0x43 */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp936.c:6944:49 0x96, 0xE2, 0x96, 0xE3, 0x96, 0xE4, 0x96, 0xE5, /* 0x24-0x27 */ 0x96, 0xE6, 0xE8, 0xF2, 0xD6, 0xEA, 0x96, 0xE7, /* 0x28-0x2B */ 0x96, 0xE8, 0x96, 0xE9, 0x96, 0xEA, 0x96, 0xEB, /* 0x2C-0x2F */ 0x96, 0xEC, 0x96, 0xED, 0xE8, 0xE0, 0xE8, 0xE1, /* 0x30-0x33 */ 0x96, 0xEE, 0x96, 0xEF, 0x96, 0xF0, 0xD1, 0xF9, /* 0x34-0x37 */ !! 0xBA, 0xCB, 0xB8, 0xF9, 0x96, 0xF1, 0x96, 0xF2, /* 0x38-0x3B */ 0xB8, 0xF1, 0xD4, 0xD4, 0xE8, 0xEF, 0x96, 0xF3, /* 0x3C-0x3F */ 0xE8, 0xEE, 0xE8, 0xEC, 0xB9, 0xF0, 0xCC, 0xD2, /* 0x40-0x43 */ 0xE8, 0xE6, 0xCE, 0xA6, 0xBF, 0xF2, 0x96, 0xF4, /* 0x44-0x47 */ 0xB0, 0xB8, 0xE8, 0xF1, 0xE8, 0xF0, 0x96, 0xF5, /* 0x48-0x4B */ 0xD7, 0xC0, 0x96, 0xF6, 0xE8, 0xE4, 0x96, 0xF7, /* 0x4C-0x4F */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp936.c:7530:49 0xC1, 0xD2, 0x9E, 0xF0, 0xEC, 0xC8, 0x9E, 0xF1, /* 0xC8-0xCB */ 0x9E, 0xF2, 0x9E, 0xF3, 0x9E, 0xF4, 0x9E, 0xF5, /* 0xCC-0xCF */ 0x9E, 0xF6, 0x9E, 0xF7, 0x9E, 0xF8, 0x9E, 0xF9, /* 0xD0-0xD3 */ 0x9E, 0xFA, 0x9E, 0xFB, 0x9E, 0xFC, 0x9E, 0xFD, /* 0xD4-0xD7 */ 0xBA, 0xE6, 0xC0, 0xD3, 0x9E, 0xFE, 0xD6, 0xF2, /* 0xD8-0xDB */ !! 0x9F, 0x40, 0x9F, 0x41, 0x9F, 0x42, 0xD1, 0xCC, /* 0xDC-0xDF */ 0x9F, 0x43, 0x9F, 0x44, 0x9F, 0x45, 0x9F, 0x46, /* 0xE0-0xE3 */ 0xBF, 0xBE, 0x9F, 0x47, 0xB7, 0xB3, 0xC9, 0xD5, /* 0xE4-0xE7 */ 0xEC, 0xC7, 0xBB, 0xE2, 0x9F, 0x48, 0xCC, 0xCC, /* 0xE8-0xEB */ 0xBD, 0xFD, 0xC8, 0xC8, 0x9F, 0x49, 0xCF, 0xA9, /* 0xEC-0xEF */ 0x9F, 0x4A, 0x9F, 0x4B, 0x9F, 0x4C, 0x9F, 0x4D, /* 0xF0-0xF3 */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp936.c:10650:49 0xFB, 0x9E, 0xFB, 0x9F, 0xFB, 0xA0, 0xFC, 0x40, /* 0xA8-0xAB */ 0xFC, 0x41, 0xFC, 0x42, 0xFC, 0x43, 0xFC, 0x44, /* 0xAC-0xAF */ 0xFC, 0x45, 0xFC, 0x46, 0xFC, 0x47, 0xFC, 0x48, /* 0xB0-0xB3 */ 0xF4, 0xF0, 0xFC, 0x49, 0xFC, 0x4A, 0xFC, 0x4B, /* 0xB4-0xB7 */ 0xF4, 0xEF, 0xFC, 0x4C, 0xFC, 0x4D, 0xC2, 0xE9, /* 0xB8-0xBB */ !! 0xFC, 0x4E, 0xF7, 0xE1, 0xF7, 0xE2, 0xFC, 0x4F, /* 0xBC-0xBF */ 0xFC, 0x50, 0xFC, 0x51, 0xFC, 0x52, 0xFC, 0x53, /* 0xC0-0xC3 */ 0xBB, 0xC6, 0xFC, 0x54, 0xFC, 0x55, 0xFC, 0x56, /* 0xC4-0xC7 */ 0xFC, 0x57, 0xD9, 0xE4, 0xFC, 0x58, 0xFC, 0x59, /* 0xC8-0xCB */ 0xFC, 0x5A, 0xCA, 0xF2, 0xC0, 0xE8, 0xF0, 0xA4, /* 0xCC-0xCF */ 0xFC, 0x5B, 0xBA, 0xDA, 0xFC, 0x5C, 0xFC, 0x5D, /* 0xD0-0xD3 */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp936.c:10659:49 0xFC, 0x5A, 0xCA, 0xF2, 0xC0, 0xE8, 0xF0, 0xA4, /* 0xCC-0xCF */ 0xFC, 0x5B, 0xBA, 0xDA, 0xFC, 0x5C, 0xFC, 0x5D, /* 0xD0-0xD3 */ 0xC7, 0xAD, 0xFC, 0x5E, 0xFC, 0x5F, 0xFC, 0x60, /* 0xD4-0xD7 */ 0xC4, 0xAC, 0xFC, 0x61, 0xFC, 0x62, 0xF7, 0xEC, /* 0xD8-0xDB */ 0xF7, 0xED, 0xF7, 0xEE, 0xFC, 0x63, 0xF7, 0xF0, /* 0xDC-0xDF */ !! 0xF7, 0xEF, 0xFC, 0x64, 0xF7, 0xF1, 0xFC, 0x65, /* 0xE0-0xE3 */ 0xFC, 0x66, 0xF7, 0xF4, 0xFC, 0x67, 0xF7, 0xF3, /* 0xE4-0xE7 */ 0xFC, 0x68, 0xF7, 0xF2, 0xF7, 0xF5, 0xFC, 0x69, /* 0xE8-0xEB */ 0xFC, 0x6A, 0xFC, 0x6B, 0xFC, 0x6C, 0xF7, 0xF6, /* 0xEC-0xEF */ 0xFC, 0x6D, 0xFC, 0x6E, 0xFC, 0x6F, 0xFC, 0x70, /* 0xF0-0xF3 */ 0xFC, 0x71, 0xFC, 0x72, 0xFC, 0x73, 0xFC, 0x74, /* 0xF4-0xF7 */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp936.c:10976:49 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, /* 0x30-0x37 */ 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, /* 0x38-0x3f */ 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, /* 0x40-0x47 */ 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, /* 0x48-0x4f */ 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, /* 0x50-0x57 */ !! 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, /* 0x58-0x5f */ 0x60, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, /* 0x60-0x67 */ 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, /* 0x68-0x6f */ 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, /* 0x70-0x77 */ 0x58, 0x59, 0x5a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, /* 0x78-0x7f */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp949.c:1851:57 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0x08-0x0F */ 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0x10-0x17 */ 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0x18-0x1F */ 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0x20-0x27 */ 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0x28-0x2F */ !! 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0x30-0x37 */ 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0x38-0x3F */ 0x0000,0xD095,0xD096,0xD097,0xD098,0xD099,0xD09A,0xD09B,/* 0x40-0x47 */ 0xD09C,0xD09D,0xD09E,0xD09F,0xD0A0,0xD0A1,0xD0A2,0xD0A3,/* 0x48-0x4F */ 0xD0A6,0xD0A7,0xD0A9,0xD0AA,0xD0AB,0xD0AD,0xD0AE,0xD0AF,/* 0x50-0x57 */ 0xD0B0,0xD0B1,0xD0B2,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0x58-0x5F */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp949.c:6389:49 0x00, 0x00, 0xE3, 0xBD, 0x00, 0x00, 0xCF, 0xE1, /* 0x10-0x13 */ 0xF0, 0xC0, 0xEC, 0xDA, 0x00, 0x00, 0xDD, 0xD7, /* 0x14-0x17 */ 0xFB, 0xF0, 0x00, 0x00, 0x00, 0x00, 0xEC, 0xAC, /* 0x18-0x1B */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0xA9, /* 0x1C-0x1F */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x20-0x23 */ !! 0x00, 0x00, 0x00, 0x00, 0xFA, 0xD7, 0xFB, 0xC1, /* 0x24-0x27 */ 0x00, 0x00, 0xD2, 0xC0, 0x00, 0x00, 0x00, 0x00, /* 0x28-0x2B */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2C-0x2F */ 0x00, 0x00, 0xE5, 0xB0, 0x00, 0x00, 0x00, 0x00, /* 0x30-0x33 */ 0x00, 0x00, 0xED, 0xE5, 0x00, 0x00, 0x00, 0x00, /* 0x34-0x37 */ 0x00, 0x00, 0x00, 0x00, 0xCB, 0xAD, 0x00, 0x00, /* 0x38-0x3B */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp949.c:11332:49 0x8C, 0x67, 0xB6, 0xCB, 0x8C, 0x68, 0x8C, 0x69, /* 0x24-0x27 */ 0x8C, 0x6A, 0x8C, 0x6B, 0x8C, 0x6C, 0x8C, 0x6D, /* 0x28-0x2B */ 0xB6, 0xCC, 0x8C, 0x6E, 0x8C, 0x6F, 0x8C, 0x70, /* 0x2C-0x2F */ 0x8C, 0x71, 0x8C, 0x72, 0x8C, 0x73, 0x8C, 0x74, /* 0x30-0x33 */ 0xB6, 0xCD, 0x8C, 0x75, 0x8C, 0x76, 0x8C, 0x77, /* 0x34-0x37 */ !! 0x8C, 0x78, 0x8C, 0x79, 0x8C, 0x7A, 0x8C, 0x81, /* 0x38-0x3B */ 0x8C, 0x82, 0x8C, 0x83, 0x8C, 0x84, 0x8C, 0x85, /* 0x3C-0x3F */ 0x8C, 0x86, 0x8C, 0x87, 0x8C, 0x88, 0x8C, 0x89, /* 0x40-0x43 */ 0x8C, 0x8A, 0x8C, 0x8B, 0x8C, 0x8C, 0x8C, 0x8D, /* 0x44-0x47 */ 0xB6, 0xCE, 0x8C, 0x8E, 0x8C, 0x8F, 0x8C, 0x90, /* 0x48-0x4B */ 0x8C, 0x91, 0x8C, 0x92, 0x8C, 0x93, 0x8C, 0x94, /* 0x4C-0x4F */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp950.c:1444:57 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0x10-0x17 */ 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0x18-0x1F */ 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0x20-0x27 */ 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0x28-0x2F */ 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0x30-0x37 */ !! 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,/* 0x38-0x3F */ 0x6759,0x6755,0x674C,0x6748,0x675D,0x674D,0x675A,0x674B,/* 0x40-0x47 */ 0x6BD0,0x6C19,0x6C1A,0x6C78,0x6C67,0x6C6B,0x6C84,0x6C8B,/* 0x48-0x4F */ 0x6C8F,0x6C71,0x6C6F,0x6C69,0x6C9A,0x6C6D,0x6C87,0x6C95,/* 0x50-0x57 */ 0x6C9C,0x6C66,0x6C73,0x6C65,0x6C7B,0x6C8E,0x7074,0x707A,/* 0x58-0x5F */ 0x7263,0x72BF,0x72BD,0x72C3,0x72C6,0x72C1,0x72BA,0x72C5,/* 0x60-0x67 */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp950.c:4008:49 0xA2, 0xCD, 0xA4, 0xCA, 0x00, 0x00, 0xA4, 0xC9, /* 0x44-0x47 */ 0xA4, 0xC8, 0xA5, 0x63, 0xA5, 0x62, 0x00, 0x00, /* 0x48-0x4B */ 0xC9, 0x6D, 0xC9, 0xC3, 0x00, 0x00, 0x00, 0x00, /* 0x4C-0x4F */ 0x00, 0x00, 0xA8, 0xF5, 0xA8, 0xF2, 0xA8, 0xF4, /* 0x50-0x53 */ 0xA8, 0xF3, 0x00, 0x00, 0x00, 0x00, 0xAB, 0x6E, /* 0x54-0x57 */ !! 0x00, 0x00, 0x00, 0x00, 0xB3, 0xD5, 0x00, 0x00, /* 0x58-0x5B */ 0xA4, 0x52, 0x00, 0x00, 0xA4, 0xCB, 0x00, 0x00, /* 0x5C-0x5F */ 0xA5, 0x65, 0xA5, 0x64, 0x00, 0x00, 0xCA, 0x72, /* 0x60-0x63 */ 0x00, 0x00, 0x00, 0x00, 0xA8, 0xF6, 0x00, 0x00, /* 0x64-0x67 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x68-0x6B */ 0xC9, 0x57, 0x00, 0x00, 0xA5, 0x67, 0xA5, 0x66, /* 0x6C-0x6F */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_cp950.c:6195:49 0x00, 0x00, 0xC2, 0x79, 0xEF, 0xFE, 0xC2, 0x78, /* 0x74-0x77 */ 0xC3, 0x7E, 0x00, 0x00, 0xC3, 0xA1, 0xC4, 0x6D, /* 0x78-0x7B */ 0xF4, 0x6E, 0xF4, 0x6D, 0xF5, 0xDD, 0xF6, 0xEF, /* 0x7C-0x7F */ 0xC5, 0x7A, 0xF7, 0xE8, 0xF7, 0xE7, 0xF7, 0xE9, /* 0x80-0x83 */ !! 0xA5, 0xC8, 0xCF, 0xC6, 0xAF, 0x59, 0xB2, 0x76, /* 0x84-0x87 */ 0xD6, 0x6A, 0xA5, 0xC9, 0xC9, 0xA7, 0xA4, 0xFD, /* 0x88-0x8B */ 0x00, 0x00, 0x00, 0x00, 0xCA, 0x45, 0x00, 0x00, /* 0x8C-0x8F */ 0x00, 0x00, 0x00, 0x00, 0xCB, 0x6C, 0xCB, 0x6A, /* 0x90-0x93 */ 0xCB, 0x6B, 0xCB, 0x68, 0xA8, 0x68, 0xCB, 0x69, /* 0x94-0x97 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x98-0x9B */ ******** @ByteRange /home/yyzhou/pad/software-os-src/linux/fs/nls/nls_iso8859-15.c:208:49 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, /* 0x68-0x6f */ 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, /* 0x70-0x77 */ 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, /* 0x78-0x7f */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, /* 0x80-0x87 */ !! 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, /* 0x88-0x8f */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, /* 0x90-0x97 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f, /* 0x98-0x9f */ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa8, 0xa7, /* 0xa0-0xa7 */ 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, /* 0xa8-0xaf */ 0xb0, 0xb1, 0xb2, 0xb3, 0xb8, 0xb5, 0xb6, 0xb7, /* 0xb0-0xb7 */ ******** @ByteRange /home/yyzhou/pad/software-os-src/opensolaris/common/io/uwidth.c:242:0 /* U+0990 */ 1, IL,IL,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+099F */ /* U+09A0 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, IL,1, 1, 1, 1, 1, 1, /* U+09AF */ /* U+09B0 */ 1, IL,1, IL,IL,IL,1, 1, 1, 1, IL,IL,0, 1, 0, 0, /* U+09BF */ /* U+09C0 */ 0, 0, 0, 0, 0, IL,IL,0, 0, IL,IL,0, 0, 0, IL,IL, /* U+09CF */ /* U+09D0 */ IL,IL,IL,IL,IL,IL,IL,0, IL,IL,IL,IL,1, 1, IL,1, /* U+09DF */ !!/* U+09E0 */ 1, 1, 0, 0, IL,IL,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+09EF */ /* U+09F0 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, IL,IL,IL,IL,IL, /* U+09FF */ /* U+0A00 */ IL,0, 0, 0, IL,1, 1, 1, 1, 1, 1, IL,IL,IL,IL,1, /* U+0A0F */ /* U+0A10 */ 1, IL,IL,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+0A1F */ /* U+0A20 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, IL,1, 1, 1, 1, 1, 1, /* U+0A2F */ /* U+0A30 */ 1, IL,1, 1, IL,1, 1, IL,1, 1, IL,IL,0, IL,0, 0, /* U+0A3F */ ******** @ByteRange /home/yyzhou/pad/software-os-src/opensolaris/common/io/uwidth.c:627:0 /* U+21A0 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+21AF */ /* U+21B0 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+21BF */ /* U+21C0 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+21CF */ /* U+21D0 */ 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+21DF */ /* U+21E0 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+21EF */ !!/* U+21F0 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+21FF */ /* U+2200 */ 2, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 2, /* U+220F */ /* U+2210 */ 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 2, 2, /* U+221F */ /* U+2220 */ 2, 1, 1, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 1, 2, 1, /* U+222F */ /* U+2230 */ 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, /* U+223F */ /* U+2240 */ 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, /* U+224F */ ******** @ByteRange /home/yyzhou/pad/software-os-src/opensolaris/common/io/uwidth.c:1003:0 /* U+3920 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+392F */ /* U+3930 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+393F */ /* U+3940 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+394F */ /* U+3950 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+395F */ /* U+3960 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+396F */ !!/* U+3970 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+397F */ /* U+3980 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+398F */ /* U+3990 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+399F */ /* U+39A0 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+39AF */ /* U+39B0 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+39BF */ /* U+39C0 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+39CF */ ******** @ByteRange /home/yyzhou/pad/software-os-src/opensolaris/common/io/uwidth.c:2961:64 /* U+B380 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+B38F */ /* U+B390 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+B39F */ /* U+B3A0 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+B3AF */ /* U+B3B0 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+B3BF */ /* U+B3C0 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+B3CF */ !!/* U+B3D0 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+B3DF */ /* U+B3E0 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+B3EF */ /* U+B3F0 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+B3FF */ /* U+B400 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+B40F */ /* U+B410 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+B41F */ /* U+B420 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* U+B42F */ ******** @ByteRange /home/yyzhou/pad/software-os-src/opensolaris/common/io/uwidth.c:3732:0 /* U+E3B0 */ PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU, /* U+E3BF */ /* U+E3C0 */ PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU, /* U+E3CF */ /* U+E3D0 */ PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU, /* U+E3DF */ /* U+E3E0 */ PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU, /* U+E3EF */ /* U+E3F0 */ PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU, /* U+E3FF */ !!/* U+E400 */ PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU, /* U+E40F */ /* U+E410 */ PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU, /* U+E41F */ /* U+E420 */ PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU, /* U+E42F */ /* U+E430 */ PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU, /* U+E43F */ /* U+E440 */ PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU, /* U+E44F */ /* U+E450 */ PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU,PU, /* U+E45F */ ******** @ByteRange /home/yyzhou/pad/software-os-src/opensolaris/common/io/uwidth.c:4238:64 /* U+10310 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, IL, /* U+1031F */ /* U+10320 */ 1, 1, 1, 1, IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1032F */ /* U+10330 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+1033F */ /* U+10340 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, IL,IL,IL,IL,IL, /* U+1034F */ /* U+10350 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1035F */ !!/* U+10360 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1036F */ /* U+10370 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1037F */ /* U+10380 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+1038F */ /* U+10390 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, IL,1, /* U+1039F */ /* U+103A0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+103AF */ /* U+103B0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+103BF */ ******** @ByteRange /home/yyzhou/pad/software-os-src/opensolaris/common/io/uwidth.c:6109:64 /* U+17800 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1780F */ /* U+17810 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1781F */ /* U+17820 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1782F */ /* U+17830 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1783F */ /* U+17840 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1784F */ !!/* U+17850 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1785F */ /* U+17860 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1786F */ /* U+17870 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1787F */ /* U+17880 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1788F */ /* U+17890 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1789F */ /* U+178A0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+178AF */ ******** @ByteRange /home/yyzhou/pad/software-os-src/opensolaris/common/io/uwidth.c:6235:0 /* U+17FE0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+17FEF */ /* U+17FF0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+17FFF */ /* U+18000 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1800F */ /* U+18010 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1801F */ /* U+18020 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1802F */ !!/* U+18030 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1803F */ /* U+18040 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1804F */ /* U+18050 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1805F */ /* U+18060 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1806F */ /* U+18070 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1807F */ /* U+18080 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1808F */ ******** @ByteRange /home/yyzhou/pad/software-os-src/opensolaris/common/io/uwidth.c:6469:64 /* U+18E80 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+18E8F */ /* U+18E90 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+18E9F */ /* U+18EA0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+18EAF */ /* U+18EB0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+18EBF */ /* U+18EC0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+18ECF */ !!/* U+18ED0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+18EDF */ /* U+18EE0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+18EEF */ /* U+18EF0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+18EFF */ /* U+18F00 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+18F0F */ /* U+18F10 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+18F1F */ /* U+18F20 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+18F2F */ ******** @ByteRange /home/yyzhou/pad/software-os-src/opensolaris/common/io/uwidth.c:7059:64 /* U+1B360 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1B36F */ /* U+1B370 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1B37F */ /* U+1B380 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1B38F */ /* U+1B390 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1B39F */ /* U+1B3A0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1B3AF */ !!/* U+1B3B0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1B3BF */ /* U+1B3C0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1B3CF */ /* U+1B3D0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1B3DF */ /* U+1B3E0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1B3EF */ /* U+1B3F0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1B3FF */ /* U+1B400 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1B40F */ ******** @ByteRange /home/yyzhou/pad/software-os-src/opensolaris/common/io/uwidth.c:7582:64 /* U+1D410 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+1D41F */ /* U+1D420 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+1D42F */ /* U+1D430 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+1D43F */ /* U+1D440 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+1D44F */ /* U+1D450 */ 1, 1, 1, 1, 1, IL,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+1D45F */ !!/* U+1D460 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+1D46F */ /* U+1D470 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+1D47F */ /* U+1D480 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, /* U+1D48F */ /* U+1D490 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, IL,1, 1, /* U+1D49F */ /* U+1D4A0 */ IL,IL,1, IL,IL,1, 1, IL,IL,1, 1, 1, 1, IL,1, 1, /* U+1D4AF */ /* U+1D4B0 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, IL,1, IL,1, 1, 1, /* U+1D4BF */ ******** @ByteRange /home/yyzhou/pad/software-os-src/opensolaris/common/io/uwidth.c:7854:64 /* U+1E510 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1E51F */ /* U+1E520 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1E52F */ /* U+1E530 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1E53F */ /* U+1E540 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1E54F */ /* U+1E550 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1E55F */ !!/* U+1E560 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1E56F */ /* U+1E570 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1E57F */ /* U+1E580 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1E58F */ /* U+1E590 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1E59F */ /* U+1E5A0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1E5AF */ /* U+1E5B0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1E5BF */ ******** @ByteRange /home/yyzhou/pad/software-os-src/opensolaris/common/io/uwidth.c:8243:64 /* U+1FD60 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1FD6F */ /* U+1FD70 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1FD7F */ /* U+1FD80 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1FD8F */ /* U+1FD90 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1FD9F */ /* U+1FDA0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1FDAF */ !!/* U+1FDB0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1FDBF */ /* U+1FDC0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1FDCF */ /* U+1FDD0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1FDDF */ /* U+1FDE0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1FDEF */ /* U+1FDF0 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1FDFF */ /* U+1FE00 */ IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL,IL, /* U+1FE0F */ *** @ByteAddress ****** place:field ******** @ByteAddress @LotsOfInfo @OsRegister /home/yyzhou/pad/software-os-src/freebsd/boot/i386/libfirewire/fwohcireg.h:268:28 fwohcireg_t int_stat; /* 0x80 */ fwohcireg_t int_clear; /* 0x84 */ fwohcireg_t int_mask; /* 0x88 */ fwohcireg_t int_mask_clear; /* 0x8c */ fwohcireg_t it_int_stat; /* 0x90 */ !! fwohcireg_t it_int_clear; /* 0x94 */ fwohcireg_t it_int_mask; /* 0x98 */ fwohcireg_t it_mask_clear; /* 0x9c */ fwohcireg_t ir_int_stat; /* 0xa0 */ fwohcireg_t ir_int_clear; /* 0xa4 */ fwohcireg_t ir_int_mask; /* 0xa8 */ ******** @ByteAddress /home/yyzhou/pad/software-os-src/freebsd/dev/mpt/mpilib/mpi_cnfg.h:1180:64 U16 MaxBadBlockTableEntries; /* 28h */ U16 Reserved9; /* 2Ah */ U16 IRNvsramUsage; /* 2Ch */ U16 Reserved10; /* 2Eh */ U32 IRNvsramVersion; /* 30h */ !! U32 Reserved11; /* 34h */ U32 Reserved12; /* 38h */ } CONFIG_PAGE_IOC_6, MPI_POINTER PTR_CONFIG_PAGE_IOC_6, IOCPage6_t, MPI_POINTER pIOCPage6_t; #define MPI_IOCPAGE6_PAGEVERSION (0x01) ******** @ByteAddress /home/yyzhou/pad/software-os-src/freebsd/dev/mpt/mpilib/mpi_cnfg.h:1734:56 U8 Reserved; /* 0Bh */ U32 PortIdentifier; /* 0Ch */ U64 WWNN; /* 10h */ U64 WWPN; /* 18h */ U32 SupportedServiceClass; /* 20h */ !! U32 SupportedSpeeds; /* 24h */ U32 CurrentSpeed; /* 28h */ U32 MaxFrameSize; /* 2Ch */ U64 FabricWWNN; /* 30h */ U64 FabricWWPN; /* 38h */ U32 DiscoveredPortsCount; /* 40h */ ******** @ByteAddress /home/yyzhou/pad/software-os-src/freebsd/dev/mpt/mpilib/mpi_cnfg.h:2856:64 U16 Slot; /* 08h */ U16 EnclosureHandle; /* 0Ah */ U64 SASAddress; /* 0Ch */ U16 ParentDevHandle; /* 14h */ U8 PhyNum; /* 16h */ !! U8 AccessStatus; /* 17h */ U16 DevHandle; /* 18h */ U8 TargetID; /* 1Ah */ U8 Bus; /* 1Bh */ U32 DeviceInfo; /* 1Ch */ U16 Flags; /* 20h */ ******** @ByteAddress /home/yyzhou/pad/software-os-src/freebsd/dev/mpt/mpilib/mpi_cnfg.h:2948:64 { CONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ U16 OwnerDevHandle; /* 08h */ U16 Reserved1; /* 0Ah */ U64 SASAddress; /* 0Ch */ !! U16 AttachedDevHandle; /* 14h */ U8 AttachedPhyIdentifier; /* 16h */ U8 Reserved2; /* 17h */ U32 AttachedDeviceInfo; /* 18h */ U8 ProgrammedLinkRate; /* 1Ch */ U8 HwLinkRate; /* 1Dh */ ******** @ByteAddress /home/yyzhou/pad/software-os-src/freebsd/dev/mpt/mpilib/mpi_targ.h:327:56 U8 LogicalUnitNumber[8]; /* 08h */ U8 Reserved3; /* 10h */ U8 TaskAttribute; /* lower 3 bits */ /* 11h */ U8 Reserved4; /* 12h */ U8 AdditionalCDBLength; /* upper 5 bits */ /* 13h */ !! U8 CDB[16]; /* 14h */ /* Additional CDB bytes extend past the CDB field */ } MPI_TARGET_SSP_CMD_BUFFER, MPI_POINTER PTR_MPI_TARGET_SSP_CMD_BUFFER, MpiTargetSspCmdBuffer, MPI_POINTER pMpiTargetSspCmdBuffer; typedef struct _MPI_TARGET_SSP_TASK_BUFFER ******** @ByteAddress @Sexy @OsRegister /home/yyzhou/pad/software-os-src/linux/drivers/net/acenic.h:74:15 u32 MacRxState; /* 0x220 */ u32 pad10[7]; !! u32 CpuBCtrl; /* 0x240 */ u32 PcB; u32 pad11[3]; u32 SramBAddr; /* 0x254 */ ******** @ByteAddress /home/yyzhou/pad/software-os-src/linux/drivers/net/gianfar.h:555:14 u8 res15a[4]; u32 rbptr0; /* 0x.384 - RxBD pointer for ring 0 */ u8 res15b[4]; u32 rbptr1; /* 0x.38c - RxBD pointer for ring 1 */ u8 res15c[4]; !! u32 rbptr2; /* 0x.394 - RxBD pointer for ring 2 */ u8 res15d[4]; u32 rbptr3; /* 0x.39c - RxBD pointer for ring 3 */ u8 res15e[4]; u32 rbptr4; /* 0x.3a4 - RxBD pointer for ring 4 */ u8 res15f[4]; ******** @ByteAddress /home/yyzhou/pad/software-os-src/linux/drivers/net/gianfar.h:620:17 u32 mac11addr1; /* 0x.598 - MAC exact match address 11, part 1*/ u32 mac11addr2; /* 0x.59c - MAC exact match address 11, part 2*/ u32 mac12addr1; /* 0x.5a0 - MAC exact match address 12, part 1*/ u32 mac12addr2; /* 0x.5a4 - MAC exact match address 12, part 2*/ u32 mac13addr1; /* 0x.5a8 - MAC exact match address 13, part 1*/ !! u32 mac13addr2; /* 0x.5ac - MAC exact match address 13, part 2*/ u32 mac14addr1; /* 0x.5b0 - MAC exact match address 14, part 1*/ u32 mac14addr2; /* 0x.5b4 - MAC exact match address 14, part 2*/ u32 mac15addr1; /* 0x.5b8 - MAC exact match address 15, part 1*/ u32 mac15addr2; /* 0x.5bc - MAC exact match address 15, part 2*/ u8 res20[192]; ******** @ByteAddress /home/yyzhou/pad/software-os-src/opensolaris/common/sys/nxge/nxge_txdma_hw.h:726:33 typedef struct _txdma_mailbox_t { tx_cs_t tx_cs; /* 8 bytes */ tx_dma_pre_st_t tx_dma_pre_st; /* 8 bytes */ tx_ring_hdl_t tx_ring_hdl; /* 8 bytes */ !! tx_ring_kick_t tx_ring_kick; /* 8 bytes */ uint32_t tx_rng_err_logh; /* 4 bytes */ uint32_t tx_rng_err_logl; /* 4 bytes */ uint32_t resv[TXDMA_MAILBOX_UNUSED]; } txdma_mailbox_t, *p_txdma_mailbox_t; ******** @ByteAddress /home/yyzhou/pad/software-os-src/opensolaris/sun/sys/audio/impl/audio1575_impl.h:552:25 uint8_t rsvd4; /* 5ah - 5ah */ uint8_t pcmocr_reg; /* 5bh - 5bh */ uint32_t rsvd5; /* 5ch - 5fh */ uint32_t micibdbar_reg; /* 60h - 63h */ uint8_t miciciv_reg; /* 64h - 64h */ !! uint8_t micilviv_reg; /* 65h - 65h */ uint16_t micisr_reg; /* 66h - 67h */ uint16_t micipicb_reg; /* 68h - 69h */ uint8_t rsvd6; /* 6ah - 6ah */ uint8_t micicr_reg; /* 6bh - 6bh */ uint32_t rsvd7; /* 6ch - 6fh */ ******** @ByteAddress /home/yyzhou/pad/software-os-src/opensolaris/sun/sys/cg6thc.h:316:29 uint32_t l_thc_cursorb15; /* 623 */ uint32_t l_thc_cursorb16; /* 624 */ uint32_t l_thc_cursorb17; /* 625 */ uint32_t l_thc_cursorb18; /* 626 */ uint32_t l_thc_cursorb19; /* 627 */ !! uint32_t l_thc_cursorb20; /* 628 */ uint32_t l_thc_cursorb21; /* 629 */ uint32_t l_thc_cursorb22; /* 630 */ uint32_t l_thc_cursorb23; /* 631 */ uint32_t l_thc_cursorb24; /* 632 */ uint32_t l_thc_cursorb25; /* 633 */ ****** place:struct_misc ******** @ByteAddress /home/yyzhou/pad/software-os-src/freebsd/dev/sym/sym_defs.h:523:0 /*cb*/ u8 nc_rbc3; /*cc*/ u8 nc_ua; /* Updated Address */ /*cd*/ u8 nc_ua1; /*ce*/ u8 nc_ua2; !!/*cf*/ u8 nc_ua3; /*d0*/ u32 nc_esa; /* Entry Storage Address */ /*d4*/ u8 nc_ia; /* Instruction Address */ /*d5*/ u8 nc_ia1; /*d6*/ u8 nc_ia2; /*d7*/ u8 nc_ia3; *** @Repeat ****** place:if ******** @Repeat /home/yyzhou/pad/software-os-src/freebsd/dev/lmc/if_lmc.c:1827:2 write_framer(sc, Bt8370_GAIN1, 0x28); write_framer(sc, Bt8370_GAIN2, 0x2C); write_framer(sc, Bt8370_GAIN3, 0x30); write_framer(sc, Bt8370_GAIN4, 0x34); !! /* 040:RCR0 -- Receiver Control Register 0 */ if (FORMAT_T1ESF) write_framer(sc, Bt8370_RCR0, 0x05); /* B8ZS, 2/5 FErrs */ else if (FORMAT_T1SF) write_framer(sc, Bt8370_RCR0, 0x84); /* AMI, 2/5 FErrs */ else if (FORMAT_E1NONE) **** @RepeatArgumentName ****** place:function_misc ******** @RepeatArgumentName /home/yyzhou/pad/software-os-src/freebsd/cam/cam_periph.c:1505:8 scsi_request_sense(&ccb->csio, /*retries*/1, camperiphdone, &save_ccb->csio.sense_data, sizeof(save_ccb->csio.sense_data), CAM_TAG_ACTION_NONE, !! /*sense_len*/SSD_FULL_SIZE, /*timeout*/5000); break; } default: panic("Unhandled error action %x", err_action); ******** @RepeatArgumentName /home/yyzhou/pad/software-os-src/freebsd/cam/cam_xpt.c:5805:5 + sizeof(struct scsi_mode_blk_desc) + sizeof(struct scsi_control_page); mode_buf = malloc(mode_buf_len, M_CAMXPT, M_NOWAIT); if (mode_buf != NULL) { scsi_mode_sense(csio, !! /*retries*/4, probedone, MSG_SIMPLE_Q_TAG, /*dbd*/FALSE, SMS_PAGE_CTRL_CURRENT, SMS_CONTROL_MODE_PAGE, ******** @RepeatArgumentName @UnitTime /home/yyzhou/pad/software-os-src/freebsd/cam/scsi/scsi_da.c:1656:8 status = done_ccb->ccb_h.status; if ((status & CAM_DEV_QFRZN) != 0) cam_release_devq(done_ccb->ccb_h.path, /*relsim_flags*/0, /*reduction*/0, !! /*timeout*/0, /*getcount_only*/0); xpt_setup_ccb(&cgd.ccb_h, done_ccb->ccb_h.path, ******** @RepeatArgumentName /home/yyzhou/pad/software-os-src/freebsd/cam/scsi/scsi_da.c:1918:5 sense_flags, softc->disk->d_devstat); if ((ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) cam_release_devq(ccb->ccb_h.path, !! /*relsim_flags*/0, /*reduction*/0, /*timeout*/0, /*getcount_only*/0); if (error == 0) { ******** @RepeatArgumentName /home/yyzhou/pad/software-os-src/freebsd/dev/aac/aac.c:1747:29 NULL, NULL, /* filter, filterarg */ MAXBSIZE, /* maxsize */ sc->aac_sg_tablesize, /* nsegments */ MAXBSIZE, /* maxsegsize */ BUS_DMA_ALLOCNOW, /* flags */ !! busdma_lock_mutex, /* lockfunc */ &sc->aac_io_lock, /* lockfuncarg */ &sc->aac_buffer_dmat)) { device_printf(sc->aac_dev, "can't allocate buffer DMA tag\n"); goto out; } ******** @RepeatArgumentName /home/yyzhou/pad/software-os-src/freebsd/dev/advansys/adv_eisa.c:179:4 /* XXX Should be a child of the PCI bus dma tag */ error = bus_dma_tag_create( /* parent */ NULL, /* alignment */ 1, /* boundary */ 0, !! /* lowaddr */ ADV_EISA_MAX_DMA_ADDR, /* highaddr */ BUS_SPACE_MAXADDR, /* filter */ NULL, /* filterarg */ NULL, /* maxsize */ BUS_SPACE_MAXSIZE_32BIT, /* nsegments */ ~0, ******** @RepeatArgumentName /home/yyzhou/pad/software-os-src/freebsd/dev/sound/isa/ad1816.c:618:3 snd_setup_intr(dev, ad1816->irq, 0, ad1816_intr, ad1816, &ad1816->ih); if (bus_dma_tag_create(/*parent*/bus_get_dma_tag(dev), /*alignment*/2, /*boundary*/0, /*lowaddr*/BUS_SPACE_MAXADDR_24BIT, !! /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/ad1816->bufsize, /*nsegments*/1, /*maxsegz*/0x3ffff, /*flags*/0, /*lockfunc*/busdma_lock_mutex, /*lockarg*/ &Giant, &ad1816->parent_dmat) != 0) { **** @RepeatType ****** place:function_misc ******** @RepeatType /home/yyzhou/pad/software-os-src/freebsd/kern/systrace_args.c:2086:25 } /* kse_create */ case 381: { struct kse_create_args *p = params; uarg[0] = (intptr_t) p->mbx; /* struct kse_mailbox * */ !! iarg[1] = p->newgroup; /* int */ *n_args = 2; break; } /* kse_thr_interrupt */ case 382: { ***** !no objs!@RepeatTypedef ***** @RepeatStructure ****** place:unknown ******** @RepeatStructure /home/yyzhou/pad/software-os-src/freebsd/gnu/fs/ext2fs/ext2_inode.c:464:33 /* * discard preallocated blocks */ int ext2_inactive(ap) !! struct vop_inactive_args /* { struct vnode *a_vp; struct thread *a_td; } */ *ap; { struct vnode *vp = ap->a_vp; struct inode *ip = VTOI(vp); struct thread *td = ap->a_td; int mode, error = 0; ******** @RepeatStructure /home/yyzhou/pad/software-os-src/freebsd/kern/vfs_syscalls.c:1588:31 * Delete a whiteout from the filesystem. */ int undelete(td, uap) struct thread *td; !! register struct undelete_args /* { char *path; } */ *uap; { int error; struct mount *mp; struct nameidata nd; int vfslocked; **** @RepeatSymbolicConstantValue ****** place:if ******** @RepeatSymbolicConstantValue /home/yyzhou/pad/software-os-src/opensolaris/common/io/asy.c:4448:30 asy->asy_bidx = B115200; else asy->asy_bidx = B9600; asy->asy_cflag &= ~CBAUD; !! if (asy->asy_bidx > CBAUD) { /* > 38400 uses the CBAUDEXT bit */ asy->asy_cflag |= CBAUDEXT; asy->asy_cflag |= asy->asy_bidx - CBAUD - 1; } else { asy->asy_cflag |= asy->asy_bidx; } ** !no objs!@Extra *** !no objs!@Abuse **** !no objs!@AbuseInt **** !no objs!@AbuseChar **** !no objs!@AbuseString **** !no objs!@AbuseMacro *** !no objs!@Splint *** !no objs!@Checker *** !no objs!@AutoGenerated *** !no objs!@LangLimitation *** !no objs!@Devil *** !no objs!@MaybeComment *** !no objs!@ObsoleteComment *** !no objs!@BadComment *** !no objs!@InconsistentComment *** !no objs!@StupidComment *** !no objs!@StupidCode *** !no objs!@FunComment *** !no objs!@LotsOfInfo *** !no objs!@Sexy *** !no objs!@CondRelated *** !no objs!@OsSpecific **** !no objs!@OsArchIndependent **** !no objs!@OsEndian **** !no objs!@OsInterrupt ***** !no objs!@OsInterruptCheckable **** !no objs!@OsScheduling **** !no objs!@OsRegister **** !no objs!@OsSignal **** !no objs!@OsMemory ***** !no objs!@OsMemoryVirtual ***** !no objs!@OsMemoryPhysical **** !no objs!@OsBlocking **** !no objs!@OsHardwareSpec **** !no objs!@OsDisk ** !no objs!@Other *** !no objs!@DataLayout *** !no objs!@IORegister *** !no objs!@Spec **** !no objs!@Invariant ***** !no objs!@InvariantCond **** !no objs!@SpecOther *** !no objs!@NullRelated *** !no objs!@RepeatIndex *** !no objs!@Priviledge *** !no objs!@BufferRelated *** !no objs!@BufferDontFree *** !no objs!@BufferWillFree *** !no objs!@BufferReference *** !no objs!@LockRelated *** !no objs!@LockOther *** !no objs!@LockBlock *** !no objs!@WillLock *** !no objs!@PrePost **** !no objs!@Pre **** !no objs!@Post *** !no objs!@OtherUnknownTag