OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [mmnommu/] [swapfile.c] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1634 jcastillo
/*
2
 *  linux/mm/swapfile.c
3
 *
4
 *  Copyright (C) 1991, 1992, 1993, 1994  Linus Torvalds
5
 *  Swap reorganised 29.12.95, Stephen Tweedie
6
 *
7
 * uClinux revisions for NO_MM
8
 * Copyright (C) 1998  Kenneth Albanowski <kjahds@kjahds.com>,
9
 *                     The Silver Hammer Group, Ltd.
10
 * Copyright (C) 1999  D. Jeff Dionne
11
 *                     Rt-Control, Inc.
12
 */
13
 
14
#include <linux/config.h>
15
#include <linux/mm.h>
16
#include <linux/sched.h>
17
#include <linux/head.h>
18
#include <linux/kernel.h>
19
#include <linux/kernel_stat.h>
20
#include <linux/errno.h>
21
#include <linux/string.h>
22
#include <linux/stat.h>
23
#include <linux/swap.h>
24
#include <linux/fs.h>
25
#include <linux/swapctl.h>
26
#include <linux/blkdev.h> /* for blk_size */
27
#include <linux/shm.h>
28
 
29
/*
30
 * Compatibility functions mostly
31
 */
32
asmlinkage int sys_swapoff(const char * specialfile)
33
{
34
        return -ENOSYS;
35
}
36
 
37
asmlinkage int sys_swapon(const char * specialfile, int swap_flags)
38
{
39
        return -ENOSYS;
40
}
41
 
42
void si_swapinfo(struct sysinfo *val)
43
{
44
        val->freeswap = val->totalswap = 0;
45
        return;
46
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.