return 0;
}
-/* To enable modules to check if a page is in RAM */
-int pfn_is_ram(unsigned long pfn)
-{
- return (page_is_ram(pfn));
-}
-
-
/*
* devmem_is_allowed() checks to see if /dev/mem access to a certain address is
* valid. The argument is a physical page number.
*ppos = pos;
-#warning MEF removed some READONLY MOUNT support -- look for it again in vs1.9.3
+ if (!IS_RDONLY(inode) || (file && MNT_IS_RDONLY(file->f_vfsmnt))) {
file_accessed(file);
DPRINTK("ncp_file_read: exit %s/%s\n",
rcu_init();
init_IRQ();
pidhash_init();
- /* MEF: In 2.6.5. ckrm_init was right after pidhash_init() but
- before sched_init(). Will leave it after pidhash_init()
- and cross finger.
- */
ckrm_init();
init_timers();
softirq_init();
#ifdef CONFIG_PROC_FS
proc_root_init();
#endif
-
check_bugs();
acpi_early_init(); /* before LAPIC and SMP init */
* firmware files.
*/
populate_rootfs();
-
do_basic_setup();
init_ckrm_sched_res();
cpu_relax();
msg = (struct msg_msg*) msr_d.r_msg;
}
+
/* Lockless receive, part 3:
* If there is a message or an error then accept it without
* locking.
#include <net/iw_handler.h>
#endif /* CONFIG_NET_RADIO */
#include <asm/current.h>
-#include <linux/vs_base.h>
#include <linux/vs_network.h>
/* This define, if set, will randomly drop a packet when congestion
struct net_device *dev;
struct in_device *in_dev;
struct in_ifaddr *ifa;
- struct sock *sk = skb->sk;
int s_ip_idx, s_idx = cb->args[0];
s_ip_idx = ip_idx = cb->args[1];
netlink_trim(skb, allocation);
- netlink_trim(skb, allocation);
-
/* While we sleep in clone, do not allow to change socket list */
netlink_lock_table();
/* class */
len = qword_get(&mesg, ipm.m_class, sizeof(ipm.m_class));
if (len <= 0) return -EINVAL;
- if (len >= sizeof(ipm.m_class))
- return -EINVAL;
/* ip address */
len = qword_get(&mesg, buf, mlen);