Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161410
b: refs/heads/master
c: 721f59e
h: refs/heads/master
v: v3
  • Loading branch information
Tobias Lorenz authored and Mauro Carvalho Chehab committed Sep 12, 2009
1 parent 129ae77 commit 9eac5e1
Show file tree
Hide file tree
Showing 2,561 changed files with 102,434 additions and 222,514 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 227423904c709a8e60245c97081bbeb4fb500655
refs/heads/master: 721f59ed612477a9f83f3f3a222a14d16505c1a4
2 changes: 0 additions & 2 deletions trunk/Documentation/00-INDEX
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ block/
- info on the Block I/O (BIO) layer.
blockdev/
- info on block devices & drivers
btmrvl.txt
- info on Marvell Bluetooth driver usage.
cachetlb.txt
- describes the cache/TLB flushing interfaces Linux uses.
cdrom/
Expand Down
75 changes: 0 additions & 75 deletions trunk/Documentation/arm/Samsung-S3C24XX/CPUfreq.txt

This file was deleted.

119 changes: 0 additions & 119 deletions trunk/Documentation/btmrvl.txt

This file was deleted.

5 changes: 0 additions & 5 deletions trunk/Documentation/connector/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,3 @@ hostprogs-y := ucon
always := $(hostprogs-y)

HOSTCFLAGS_ucon.o += -I$(objtree)/usr/include

all: modules

modules clean:
$(MAKE) -C ../.. SUBDIRS=$(PWD) $@
33 changes: 15 additions & 18 deletions trunk/Documentation/connector/cn_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#define pr_fmt(fmt) "cn_test: " fmt

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
Expand All @@ -29,17 +27,18 @@

#include <linux/connector.h>

static struct cb_id cn_test_id = { CN_NETLINK_USERS + 3, 0x456 };
static struct cb_id cn_test_id = { 0x123, 0x456 };
static char cn_test_name[] = "cn_test";
static struct sock *nls;
static struct timer_list cn_test_timer;

static void cn_test_callback(struct cn_msg *msg)
void cn_test_callback(void *data)
{
pr_info("%s: %lu: idx=%x, val=%x, seq=%u, ack=%u, len=%d: %s.\n",
__func__, jiffies, msg->id.idx, msg->id.val,
msg->seq, msg->ack, msg->len,
msg->len ? (char *)msg->data : "");
struct cn_msg *msg = (struct cn_msg *)data;

printk("%s: %lu: idx=%x, val=%x, seq=%u, ack=%u, len=%d: %s.\n",
__func__, jiffies, msg->id.idx, msg->id.val,
msg->seq, msg->ack, msg->len, (char *)msg->data);
}

/*
Expand All @@ -64,7 +63,9 @@ static int cn_test_want_notify(void)

skb = alloc_skb(size, GFP_ATOMIC);
if (!skb) {
pr_err("failed to allocate new skb with size=%u\n", size);
printk(KERN_ERR "Failed to allocate new skb with size=%u.\n",
size);

return -ENOMEM;
}

Expand Down Expand Up @@ -113,12 +114,12 @@ static int cn_test_want_notify(void)
//netlink_broadcast(nls, skb, 0, ctl->group, GFP_ATOMIC);
netlink_unicast(nls, skb, 0, 0);

pr_info("request was sent: group=0x%x\n", ctl->group);
printk(KERN_INFO "Request was sent. Group=0x%x.\n", ctl->group);

return 0;

nlmsg_failure:
pr_err("failed to send %u.%u\n", msg->seq, msg->ack);
printk(KERN_ERR "Failed to send %u.%u\n", msg->seq, msg->ack);
kfree_skb(skb);
return -EINVAL;
}
Expand All @@ -130,8 +131,6 @@ static void cn_test_timer_func(unsigned long __data)
struct cn_msg *m;
char data[32];

pr_debug("%s: timer fired with data %lu\n", __func__, __data);

m = kzalloc(sizeof(*m) + sizeof(data), GFP_ATOMIC);
if (m) {

Expand All @@ -151,7 +150,7 @@ static void cn_test_timer_func(unsigned long __data)

cn_test_timer_counter++;

mod_timer(&cn_test_timer, jiffies + msecs_to_jiffies(1000));
mod_timer(&cn_test_timer, jiffies + HZ);
}

static int cn_test_init(void)
Expand All @@ -169,10 +168,8 @@ static int cn_test_init(void)
}

setup_timer(&cn_test_timer, cn_test_timer_func, 0);
mod_timer(&cn_test_timer, jiffies + msecs_to_jiffies(1000));

pr_info("initialized with id={%u.%u}\n",
cn_test_id.idx, cn_test_id.val);
cn_test_timer.expires = jiffies + HZ;
add_timer(&cn_test_timer);

return 0;

Expand Down
Loading

0 comments on commit 9eac5e1

Please sign in to comment.