ctucan_probe_common(9)
π NAME π
ctucan_probe_common β the device-type-independent registration call, bestie. Like, it does not care what kind of device you brought to the party; it handles the registration vibe anyway. β¨
πΈ SYNOPSIS πΈ
int ctucan_probe_common (struct device *dev , void __iomem *addr , int
irq , unsigned int ntxbufs , unsigned long can_clk_rate , int
pm_enable_call , void (*set_drvdata_fnc)(struct device *dev, struct
net_device *ndev) );
π ARGUMENTS π
devβ handle to the generic device structure. Itβs the main-character device handle, periodt. πaddrβ base address of the CTU CAN FD core address. Yes, that exact phrase; itβs the coreβs address home base. πirqβ the interrupt number. The literal βhey bestie, something happenedβ number. πntxbufsβ number of implemented Tx buffers. Count those Tx buffers, donβt guess. π₯can_clk_rateβ clock rate. If itβs0, then the clock is taken from the device node. No cap, thatβs the rule. π°οΈpm_enable_callβ whetherpm_runtime_enableshould be called. So itβs basically a yes/no vibe check for that call. βset_drvdata_fncβ function to set network driver data for the physical device. Itβs giving βyou provide the setter, Iβll handle the restβ energy. π«Ά
π¦ DESCRIPTION π¦
This function does all the memory allocation and registration for the CAN device. Like, all of it β the allocation and the registration, together, slay. π
β RETURN β
0 on success, and a failure value on error. So, success is the iconic 0; anything else is the error vibe telling you something went sideways. π
π SEE ALSO π
Kernel file ./drivers/net/can/ctucanfd/ctucanfd.h β go look, iykyk. π
Source/version cuteness: this page lives under ./drivers/net/can/ctucanfd, and the date on it is October 2026. Stay hydrated, read your headers, and mwah ππ§ββοΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms