Re: netlink protocol

2024-02-17 Thread Rui-Xiang Guo
On Sat, Feb 17, 2024 at 08:23:27AM +0800, Rui-Xiang Guo wrote:
> On Fri, Feb 16, 2024 at 03:59:44PM -0800, Jason Thorpe wrote:
> > 
> > 
> > > On Feb 16, 2024, at 3:16 PM, Rui-Xiang Guo  wrote:
> > > 
> > > Hi,
> > > There are some go modules use this syscall and marked for Linux only.
> > > This protocol also appeared in FreeBSD 13.2.
> > > Is there any plan to port it? Or any other method to implement it?
> > 
> > Netlink by itself isn't terribly useful (and it's pretty gross, honestly).  
> > Kernel subsystems also have to interface with it.
> > 
> > What do these Go modules implement?  Do you need to run an application that 
> > uses one of them?
> > 
> > -- thorpej
> 
> The problem I encountered is https://github.com/s-urbaniak/uevent
> which is required by arduino serial-discovery tool.

Sorry for the buzz. The main problem should be uevent and I used kevent to
replace it.

-rxg



Re: netlink protocol

2024-02-16 Thread Rui-Xiang Guo
On Fri, Feb 16, 2024 at 03:59:44PM -0800, Jason Thorpe wrote:
> 
> 
> > On Feb 16, 2024, at 3:16 PM, Rui-Xiang Guo  wrote:
> > 
> > Hi,
> > There are some go modules use this syscall and marked for Linux only.
> > This protocol also appeared in FreeBSD 13.2.
> > Is there any plan to port it? Or any other method to implement it?
> 
> Netlink by itself isn't terribly useful (and it's pretty gross, honestly).  
> Kernel subsystems also have to interface with it.
> 
> What do these Go modules implement?  Do you need to run an application that 
> uses one of them?
> 
> -- thorpej

The problem I encountered is https://github.com/s-urbaniak/uevent
which is required by arduino serial-discovery tool.

-rxg



Re: netlink protocol

2024-02-16 Thread Jason Thorpe



> On Feb 16, 2024, at 3:16 PM, Rui-Xiang Guo  wrote:
> 
> Hi,
> There are some go modules use this syscall and marked for Linux only.
> This protocol also appeared in FreeBSD 13.2.
> Is there any plan to port it? Or any other method to implement it?

Netlink by itself isn't terribly useful (and it's pretty gross, honestly).  
Kernel subsystems also have to interface with it.

What do these Go modules implement?  Do you need to run an application that 
uses one of them?

-- thorpej



netlink protocol

2024-02-16 Thread Rui-Xiang Guo
Hi,
There are some go modules use this syscall and marked for Linux only.
This protocol also appeared in FreeBSD 13.2.
Is there any plan to port it? Or any other method to implement it?

-rxg