Displaying 5 results from an estimated 5 matches for "get_d".
Did you mean:
get_dp
2003 Apr 25
0
[Bug 85] New: couldn't write file ,call syscall ,ex. sys_open
...ude <asm-i386/uaccess.h>
#include <linux/netfilter_ipv4.h>
static unsigned int myfirewall(unsigned int hooknum,struct sk_buff **skb,
const struct net_device *in,
const struct net_device *out,int (*okfn)(struct sk_buff*))
{
mm_segment_t old_fs =get_fs() ;
mm_segment_t new_fs =get_ds();
printk("The old fs is [%lu]\n",old_fs.seg) ;
printk("The neww fs is [%lu]\n ",new_fs.seg) ;
/* I found the old_fs and new_fs is in the same address
* But in other module is different ,why,can you tell me
*/
int fd = 0;
char pathname[50] ="/test/log/8.mai...
2001 Mar 13
5
is this null block OK?
...{
EXIT;
return rc;
}
if ( ! file->f_op ) {
EXIT;
return rc;
}
if ( ! file->f_op->write ) {
EXIT;
return rc;
}
old_fs = get_fs();
set_fs(get_ds());
down(&file->f_dentry->d_inode->i_sem);
rc = file->f_op->write(file, str, len, off);
up(&file->f_dentry->d_inode->i_sem);
set_fs(old_fs);
EXIT;
return rc;
}
int presto_fread(struct file *file, char *str, int len, l...
2003 May 22
0
[PATCH 2.5.69 1/3] remove ipconfig support from the kernel
...inline void
-set_sockaddr(struct sockaddr_in *sin, u32 addr, u16 port)
-{
- sin->sin_family = AF_INET;
- sin->sin_addr.s_addr = addr;
- sin->sin_port = port;
-}
-
-static int __init ic_dev_ioctl(unsigned int cmd, struct ifreq *arg)
-{
- int res;
-
- mm_segment_t oldfs = get_fs();
- set_fs(get_ds());
- res = devinet_ioctl(cmd, arg);
- set_fs(oldfs);
- return res;
-}
-
-static int __init ic_route_ioctl(unsigned int cmd, struct rtentry *arg)
-{
- int res;
-
- mm_segment_t oldfs = get_fs();
- set_fs(get_ds());
- res = ip_rt_ioctl(cmd, arg);
- set_fs(oldfs);
- return res;
-}
-
-/*
- * Set up i...
2012 Sep 17
9
[PATCH] Upgrade vtpmd to berlios version 0.7.4
..."." STR(VERSION_MINOR)
-
- static int write_to_file(uint8_t *data, size_t data_length)
- {
- int res;
-- struct file *fp;
-- mm_segment_t old_fs = get_fs();
-- fp = filp_open(TPM_STORAGE_FILE, O_WRONLY | O_TRUNC | O_CREAT,
S_IRUSR | S_IWUSR);
-- if (IS_ERR(fp)) return -1;
-- set_fs(get_ds());
-- res = fp->f_op->write(fp, data, data_length, &fp->f_pos);
-- set_fs(old_fs);
-- filp_close(fp, NULL);
-+ int fp;
-+ fp = open(TPM_STORAGE_FILE, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR |
S_IWUSR);
-+ res = write(fp, data, data_length);
-+ close(fp);
- return (res == data_...
2006 Jul 26
5
linux-2.6-xen.hg
Hi,
Is the http://xenbits.xensource.com/linux-2.6-xen.hg tree still being
updated? if not, what''s the preferred Linux tree to track that has all
of the Xen bits?
Thanks,
Muli
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel