Get notification when a block device is mounted.
Hi, all: I want to get notified when a block device is mounted, and after some google searches, it seems a syscall named "mount_notified()" existed before but was removed in the latest kernel. For the latest kernel, is there any system call or other mechanisms cater this purpose? Thanks ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
RE: how to avoid CPU watchdog error during debug
> > since many things are time depending in the kernel it is difficult to stop > parts of the kernel. The question is if it is really absolutely necessary > to do this? Why you can not do it by logging with printk? > > Debugging is described in: > https://www.doc-developpement-durable.org/file/Projets- > informatiques/cours-&-manuels- > informatiques/Linux/Linux%20Kernel%20Development,%203rd%20Edition.pdf > > See Chapter 18 Debugging > > Thanks! Bye Philipp > Hi, Philipp, I've found your answer too late. Thanks for the info(I learned something about the early_prink from the book). Actually, shortly after I sent my question, I learned how to make printk appear in the console (not in the dmesg buffer) and was using it. (I added the line "kernel.prink = 5 4 1 7" in the /etc/sysctl.conf file. So I've set the default console log level to 5 making default printk appear in the console.) Thanks! Chan > ___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Device doesnt show up on Ble Scanner - gatt-service example in tools folder as per Documentation(doc)
Hello, I tried cross compiling the bluez and ported it to my linux platform.I think i have done it correctly as I am able to launch the gatt-service example successfully but i am not able to view it on the Smartphone app - blescanner or light blue. Below are the logs : === ./gatt-service gatt-service unique name: :1.18 Registered service: /service1 Registered service: /service2 Registered service: /service3 Get Primary: True Get UUID: 1802--1000-8000-00805f9b34fb Exist Includes: 1802--1000-8000-00805f9b34fb Get Includes: 1802--1000-8000-00805f9b34fb Includes path: /service3 Get Includes: /service2 Characteristic(2a06--1000-8000-00805f9b34fb): Get("Value") Descriptor(8260c653-1a54-426b-9e36-e84c238bc669): Get("Value") Get Primary: True Get UUID: A00C Exist Includes: A00C Characteristic(2c07--1000-8000-00805f9b34fb): Get("Value") Descriptor(): Get("Value") Get Primary: True Get UUID: A00D Exist Includes: A00D Characteristic(2b06--1000-8000-00805f9b34fb): Get("Value") Descriptor(0260c653-1a54-426b-9e36-e84c238bc669): Get("Value") I also tried to run the python example inside test/example-gatt-server but again I am not able to view the device name. Below are the logs : === python3 example-gatt-server example-gatt-server:395: PyGIDeprecationWarning: GObject.timeout_add is deprecated; use GLib.timeout_add instead GObject.timeout_add(5000, self.drain_battery) example-gatt-server:652: PyGIDeprecationWarning: GObject.MainLoop is deprecated; use GLib.MainLoop instead mainloop = GObject.MainLoop() Registering GATT application... GetManagedObjects GATT application registered I even opened the btmon on a different tab but still I am not able to see anything on that. Is there any other application we have to run? Has any one ran it successfully and able to view/connect and see all the 3 services it is advertising. Please advise / ask for any further information , I will provide. Thanks in advance ! Regards, R ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
USB/HID: Device with multiple interfaces
Hi all, I'm trying to solve an issue with a mouse that only reports battery over Bluetooth. I hope you can help me. When connected over Bluetooth, the mouse registers one HID descriptor containing both mouse and power device collections. However, when it's connected over USB, I can see using lsusb that 3 interfaces are available and, unlike with Bluethoot, the HID descriptors containing mouse and power device are in different interfaces. The battery percentage is not reported in this case. So far I've been able to get the battery percentage in the driver by manually calling devm_power_supply_register and submitting an URB. My question is: since the HID descriptors with the power device collection is present but in a different interface, is there a way to associate both interfaces to the same physical device and get the battery percentage automatically? Thank you very much in advance, Jose ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re[2]: Kernel bug tracker
Hi Anatoly, Thank you very much for your response. https://bugzilla.kernel.org looks exactly what I was looking for. -- Regards, Adverg Ebashinskii ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Kernel bug tracker
Hello. I’m a kernel newbie and try to get involved into the Kernel development. So I’d like to start with small bug fixes related to any subsystem (fs is preferred since I familiar with it the most) or something like that. Is there some kernel bug tracker where anybody could pick a bug to fix and then send patches? -- Regards, Adverg Ebashinskii___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Kernel bug tracker
On Sun, Aug 29, 2021 at 10:04 AM Adverg Ebashinskii wrote: > > Hello. > > I’m a kernel newbie and try to get involved into the Kernel development. So > I’d like to start with small bug fixes related to any subsystem (fs is > preferred since I familiar with it the most) or something like that. > > Is there some kernel bug tracker where anybody could pick a bug to fix and > then send patches? https://bugzilla.kernel.org/ There's as well per linux distribution / vendor bug reporting web interfaces, like http://bugs.debian.org/ and/or https://bugs.launchpad.net/ https://bugzilla.redhat.com/ where users could first post their bugs ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies