glendix
view netfs/ether.c @ 83:6fdffc287daf
Tutorial: How to process the written instructions in netfs
| author | Rahul Murmuria <rahul@murmuria.in> |
|---|---|
| date | Sat Apr 04 21:17:51 2009 -0500 (2009-04-04) |
| parents | 18b8b6d0f876 |
| children | ef351368303b |
line source
1 /*
2 * Copyright 2009 Rahul Murmuria <rahul@murmuria.in>
3 * This file may be redistributed under the terms of the GNU GPL.
4 */
6 #define __NO_VERSION__
8 #include "net.h"
9 /*
10 * Create the files that we export.
11 */
13 void ether_create_files (struct super_block *sb, struct dentry *root)
14 {
15 static char *ether_tmp;
16 ether_tmp = kmalloc(TMPSIZE, GFP_KERNEL);
17 memset (ether_tmp, 0, TMPSIZE);
18 /* if ether0 exists */
19 slashnet_create_dir(sb, root, "ether0");
20 }
