RCSID("$Id$");
static __initdata const char banner[] =
- KERN_INFO "vcan: Virtual CAN interface driver\n";
+ KERN_INFO "vcan: Virtual CAN interface driver\n";
MODULE_DESCRIPTION("virtual CAN interface");
MODULE_LICENSE("Dual BSD/GPL");
---help---
The Raw CAN protocol option offers access to the CAN bus via
the BSD socket API. You probably want to use the raw socket in
- most cases where no higher level protocol is being used. The raw
+ most cases where no higher level protocol is being used. The raw
socket has several filter options e.g. ID-Masking / Errorframes.
To receive/send raw CAN messages, use AF_CAN with protocol CAN_RAW.
source "drivers/net/can/Kconfig"
-
/*
* Insert struct dev_rcv_lists for reception on all devices.
- * This struct is zero initialized which is correct for the
+ * This struct is zero initialized which is correct for the
* embedded hlist heads, the dev pointer, and the entries counter.
*/
return len;
}
-/*
+/*
* bcm_can_tx - send the (next) CAN frame to the appropriate CAN interface
* of the given bcm tx op
*/
dev_put(dev);
}
-/*
+/*
* bcm_send_to_user - send a BCM message to the userspace
* (consisting of bcm_msg_head + x CAN frames)
*/
}
/*
- * bcm_rx_update_and_send - process a detected relevant receive content change
+ * bcm_rx_update_and_send - process a detected relevant receive content change
* 1. update the last received data
- * 2. send a notification to the user (if possible)
+ * 2. send a notification to the user (if possible)
*/
static void bcm_rx_update_and_send(struct bcm_op *op,
struct can_frame *lastdata,
if (op->flags & TX_RESET_MULTI_IDX) {
/* start multiple frame transmission with index 0 */
- op->currframe = 0;
+ op->currframe = 0;
}
if (op->flags & SETTIMER) {
dev_put(dev);
}
- } else
+ } else
can_rx_register(NULL, op->can_id, REGMASK(op->can_id),
bcm_rx_handler, op, IDENT);
}
if (!ifindex && msg->msg_name) {
/* no bound device as default => check msg_name */
- struct sockaddr_can *addr =
+ struct sockaddr_can *addr =
(struct sockaddr_can *)msg->msg_name;
if (addr->can_family != AF_CAN)
else
ret = -EINVAL;
break;
-
+
case RX_DELETE:
if (bcm_delete_rx_op(&bo->rx_ops, msg_head.can_id, ifindex))
ret = MHSIZ;
static int user_reset = 0;
-/*
+/*
* af_can statistics stuff
*/
/* calc total values */
if (stats.rx_frames)
- stats.total_rx_match_ratio = (stats.matches * 100) /
+ stats.total_rx_match_ratio = (stats.matches * 100) /
stats.rx_frames;
stats.total_tx_rate = calc_rate(stats.jiffies_init, j,
add_timer(&stattimer);
}
-/*
+/*
* proc read functions
*
* From known use-cases we expect about 10 entries in a receive list to be