Home Forums C Programming How this code works?

Viewing 6 reply threads
  • Author
    Posts
    • #2093
      varsha narwale
      Participant

      I need to know how this code works?


      struct usb_driver {
      const char *name;
      void * (*probe)(struct usb_device *, unsigned int,
      const struct usb_device_id *id_table);
      void (*disconnect)(struct usb_device *, void *);
      struct list_head driver_list;
      struct file_operations *fops;
      int minor;
      struct semaphore serialize;
      int (*ioctl) (struct usb_device *dev, unsigned int code,
      void *buf);
      const struct usb_device_id *id_table;

      it’s a USB driver structure in linux.
      please i need help so fast.
      thanks in advance

    • #3378
      varsha narwale
      Participant

      why no one has answered me.

    • #3379
      Adetutu
      Participant

      This is simple a structure. What type of help you are looking for?
      This is simple structure with some pointer notation. Tell your exact problem.

    • #3380
      varsha narwale
      Participant

      I want to know by a simple explanation how can i understand this code(i have a problem with pointers) and make a program do something like that.

      thanks in advance
    • #3381
      Adetutu
      Participant

      Most welcome at any time dude

    • #3382
      varsha narwale
      Participant

      I have come back and I think that I need your help quickly, please.

      thanks
    • #3383
      varsha narwale
      Participant

      Hey,I’m waiting.

Viewing 6 reply threads
  • The forum ‘C Programming’ is closed to new topics and replies.